mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
Moving is_601 up, so the opcodes get initialized correctly
This commit is contained in:
parent
a26628ed50
commit
b15d3be88a
@ -816,6 +816,9 @@ void ppc_cpu_init(MemCtrlBase* mem_ctrl, uint32_t cpu_version, uint64_t tb_freq)
|
||||
|
||||
mem_ctrl_instance = mem_ctrl;
|
||||
|
||||
ppc_state.spr[SPR::PVR] = cpu_version;
|
||||
is_601 = (cpu_version >> 16) == 1;
|
||||
|
||||
initialize_ppc_opcode_tables();
|
||||
|
||||
if (cpu_version == PPC_VER::MPC601) {
|
||||
@ -885,9 +888,6 @@ void ppc_cpu_init(MemCtrlBase* mem_ctrl, uint32_t cpu_version, uint64_t tb_freq)
|
||||
ppc_state.spr[i] = 0;
|
||||
}
|
||||
|
||||
ppc_state.spr[SPR::PVR] = cpu_version;
|
||||
is_601 = (cpu_version >> 16) == 1;
|
||||
|
||||
if (is_601) {
|
||||
/* MPC601 sets MSR[ME] bit during hard reset / Power-On */
|
||||
ppc_state.msr = (MSR::ME + MSR::IP);
|
||||
|
Loading…
Reference in New Issue
Block a user