mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-02 06:51:53 -06:00
added cpu_model parameter to cpu_init()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3562 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7d77bf2006
commit
aaed909a49
46 changed files with 320 additions and 324 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue