Revision aaed909a darwin-user/main.c
b/darwin-user/main.c | ||
---|---|---|
785 | 785 |
int optind; |
786 | 786 |
short use_gdbstub = 0; |
787 | 787 |
const char *r; |
788 |
const char *cpu_model; |
|
788 | 789 |
|
789 | 790 |
if (argc <= 1) |
790 | 791 |
usage(); |
... | ... | |
855 | 856 |
|
856 | 857 |
/* NOTE: we need to init the CPU at this stage to get |
857 | 858 |
qemu_host_page_size */ |
858 |
env = cpu_init(); |
|
859 |
#if defined(TARGET_I386) |
|
860 |
cpu_model = "qemu32"; |
|
861 |
#elif defined(TARGET_PPC) |
|
862 |
cpu_model = "750"; |
|
863 |
#else |
|
864 |
#error unsupported CPU |
|
865 |
#endif |
|
866 |
|
|
867 |
env = cpu_init(cpu_model); |
|
859 | 868 |
|
860 | 869 |
printf("Starting %s with qemu\n----------------\n", filename); |
861 | 870 |
|
Also available in: Unified diff