mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-20 00:31:28 +00:00
fix extraction of XER from QEMU engine
This commit is contained in:
parent
04214f3820
commit
8db8d10287
@ -323,14 +323,14 @@ uint32 powerpc_cpu_base::emul_get_xer() const
|
||||
{
|
||||
uint32 xer = 0;
|
||||
for (int i = 0; i < 32; i++)
|
||||
xer |= ppc->xer[i] << (31 - i);
|
||||
xer |= ppc->xer[i] << i;
|
||||
return xer;
|
||||
}
|
||||
|
||||
void powerpc_cpu_base::emul_set_xer(uint32 value)
|
||||
{
|
||||
for (int i = 0; i < 32; i++)
|
||||
ppc->xer[i] = (value >> (31 - i)) & 1;
|
||||
ppc->xer[i] = (value >> i) & 1;
|
||||
}
|
||||
|
||||
uint32 powerpc_cpu_base::emul_get_cr() const
|
||||
|
Loading…
Reference in New Issue
Block a user