mirror of
https://github.com/openbios/openfirmware.git
synced 2025-05-09 08:32:01 +08:00
ARM Simulator - Oops. We never enabled conditional execution of instructions.
Apparently we rarely use that feature. git-svn-id: svn://coreboot.org/openfirmware@3789 1552c027-8020-0410-b4b5-a757f869b4ce
This commit is contained in:
parent
f0d13a7cc3
commit
d5cc657ce8
@ -343,6 +343,9 @@ simulate(u8 *mem, u32 start, u32 header, u32 syscall_vec,
|
||||
regdump(instruction, last_pc, 0);
|
||||
//#endif
|
||||
EVAL_COND(COND);
|
||||
if (cond == 0) {
|
||||
goto annul;
|
||||
}
|
||||
if (cond == 0xf)
|
||||
UNIMP("unconditional");
|
||||
switch (OP) {
|
||||
@ -1283,6 +1286,7 @@ case 0x7d:
|
||||
case 0x7e:
|
||||
case 0x7f: UNIMP("svc"); break;
|
||||
} // switch (OP)
|
||||
annul:
|
||||
if (PC == last_pc)
|
||||
PC += 4;
|
||||
else // branch or move
|
||||
|
Loading…
x
Reference in New Issue
Block a user