mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-08 18:50:40 +00:00
mips: fix uc_reg_read() for MIPS64
This commit is contained in:
parent
d10737c9f8
commit
cb44f77ac3
|
@ -87,7 +87,7 @@ int mips_reg_read(struct uc_struct *uc, unsigned int *regs, void **vals, int cou
|
||||||
unsigned int regid = regs[i];
|
unsigned int regid = regs[i];
|
||||||
void *value = vals[i];
|
void *value = vals[i];
|
||||||
if (regid >= UC_MIPS_REG_0 && regid <= UC_MIPS_REG_31)
|
if (regid >= UC_MIPS_REG_0 && regid <= UC_MIPS_REG_31)
|
||||||
*(int32_t *)value = MIPS_CPU(uc, mycpu)->env.active_tc.gpr[regid - UC_MIPS_REG_0];
|
*(mipsreg_t *)value = MIPS_CPU(uc, mycpu)->env.active_tc.gpr[regid - UC_MIPS_REG_0];
|
||||||
else {
|
else {
|
||||||
switch(regid) {
|
switch(regid) {
|
||||||
default: break;
|
default: break;
|
||||||
|
|
Loading…
Reference in a new issue