main.c
829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Copyright (C) 1998 by the Board of Trustees
* of Leland Stanford Junior University.
* Copyright (C) 1998 Digital Equipment Corporation
*
* This file is part of the SimOS distribution.
* See LICENSE file for terms of the license.
*
*/
#include "gamma.h"
#include "thread.h"
#include "globals.h"
void aint_init (int argc, char **argv, char **envp);
void execute ();
void execute_gamma();
void aint_done ();
/*
* XXX bugnion. fixthis
* link problems
*/
int restoringCpt=0;
int simosCPUType;
int
main (int argc, char **argv, char **envp)
{
#ifdef SOLO
SimErrorInit("log");
TCLInit("init.simos");
#endif
aint_init (argc, argv, envp);
#ifdef SOLO
threads[0].st.aintThread = threads;
execute_gamma(&threads[0].st,threads->st.PC);
#else
execute ();
#endif
aint_done ();
exit (0);
}