diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-10 15:15:54 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-10 15:15:54 +0000 |
commit | aaed909a495e78364abc6812df672d2e764961a8 (patch) | |
tree | 704ab4280f250fa310bee6a3d0ba94e5417daef3 /darwin-user | |
parent | More Sparc64 CPU definitions (diff) | |
download | qemu-kvm-aaed909a495e78364abc6812df672d2e764961a8.tar.gz qemu-kvm-aaed909a495e78364abc6812df672d2e764961a8.tar.bz2 qemu-kvm-aaed909a495e78364abc6812df672d2e764961a8.zip |
added cpu_model parameter to cpu_init()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3562 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'darwin-user')
-rw-r--r-- | darwin-user/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/darwin-user/main.c b/darwin-user/main.c index f240f35a6..607d3d65f 100644 --- a/darwin-user/main.c +++ b/darwin-user/main.c @@ -785,6 +785,7 @@ int main(int argc, char **argv) int optind; short use_gdbstub = 0; const char *r; + const char *cpu_model; if (argc <= 1) usage(); @@ -855,7 +856,15 @@ int main(int argc, char **argv) /* NOTE: we need to init the CPU at this stage to get qemu_host_page_size */ - env = cpu_init(); +#if defined(TARGET_I386) + cpu_model = "qemu32"; +#elif defined(TARGET_PPC) + cpu_model = "750"; +#else +#error unsupported CPU +#endif + + env = cpu_init(cpu_model); printf("Starting %s with qemu\n----------------\n", filename); |