sim.c (ffa4822c015d5670ef6a2239f3cbd2ff2cec57de) | sim.c (e264d29de28c5b0be3d063307ce9fb613b427cc3) |
---|---|
1/* 2 * Copyright (c) 2011, Max Filippov, Open Source and Linux Lab. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * * Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 90 unchanged lines hidden (view full) --- 99 &elf_entry, &elf_lowaddr, NULL, 0, ELF_MACHINE, 0); 100#endif 101 if (success > 0) { 102 env->pc = elf_entry; 103 } 104 } 105} 106 | 1/* 2 * Copyright (c) 2011, Max Filippov, Open Source and Linux Lab. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * * Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 90 unchanged lines hidden (view full) --- 99 &elf_entry, &elf_lowaddr, NULL, 0, ELF_MACHINE, 0); 100#endif 101 if (success > 0) { 102 env->pc = elf_entry; 103 } 104 } 105} 106 |
107static QEMUMachine xtensa_sim_machine = { 108 .name = "sim", 109 .desc = "sim machine (" XTENSA_DEFAULT_CPU_MODEL ")", 110 .is_default = true, 111 .init = xtensa_sim_init, 112 .max_cpus = 4, 113}; 114 115static void xtensa_sim_machine_init(void) | 107static void xtensa_sim_machine_init(MachineClass *mc) |
116{ | 108{ |
117 qemu_register_machine(&xtensa_sim_machine); | 109 mc->desc = "sim machine (" XTENSA_DEFAULT_CPU_MODEL ")"; 110 mc->is_default = true; 111 mc->init = xtensa_sim_init; 112 mc->max_cpus = 4; |
118} 119 | 113} 114 |
120machine_init(xtensa_sim_machine_init); | 115DEFINE_MACHINE("sim", xtensa_sim_machine_init) |