mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 09:55:33 +00:00
removed unneed cases in the switch statement
This commit is contained in:
parent
d4d5631181
commit
f4894a1c77
|
@ -63,12 +63,6 @@ int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value)
|
|||
case UC_SPARC_REG_PC:
|
||||
*(int32_t *)value = SPARC_CPU(uc, mycpu)->env.pc;
|
||||
break;
|
||||
case UC_SPARC_REG_SP:
|
||||
*(int32_t *)value = SPARC_CPU(uc, mycpu)->env.regwptr[6];
|
||||
break;
|
||||
case UC_SPARC_REG_FP:
|
||||
*(int32_t *)value = SPARC_CPU(uc, mycpu)->env.regwptr[22];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -100,12 +94,6 @@ int sparc_reg_write(struct uc_struct *uc, unsigned int regid, const void *value)
|
|||
SPARC_CPU(uc, mycpu)->env.pc = *(uint32_t *)value;
|
||||
SPARC_CPU(uc, mycpu)->env.npc = *(uint32_t *)value + 4;
|
||||
break;
|
||||
case UC_SPARC_REG_SP:
|
||||
SPARC_CPU(uc, mycpu)->env.regwptr[6] = *(uint32_t *)value;
|
||||
break;
|
||||
case UC_SPARC_REG_FP:
|
||||
SPARC_CPU(uc, mycpu)->env.regwptr[22] = *(uint32_t *)value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,12 +46,6 @@ int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value)
|
|||
case UC_SPARC_REG_PC:
|
||||
*(int64_t *)value = SPARC_CPU(uc, mycpu)->env.pc;
|
||||
break;
|
||||
case UC_SPARC_REG_SP:
|
||||
*(int64_t *)value = SPARC_CPU(uc, mycpu)->env.regwptr[6];
|
||||
break;
|
||||
case UC_SPARC_REG_FP:
|
||||
*(int64_t *)value = SPARC_CPU(uc, mycpu)->env.regwptr[22];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,12 +77,6 @@ int sparc_reg_write(struct uc_struct *uc, unsigned int regid, const void *value)
|
|||
SPARC_CPU(uc, mycpu)->env.pc = *(uint64_t *)value;
|
||||
SPARC_CPU(uc, mycpu)->env.npc = *(uint64_t *)value + 8;
|
||||
break;
|
||||
case UC_SPARC_REG_SP:
|
||||
SPARC_CPU(uc, mycpu)->env.regwptr[6] = *(uint64_t *)value;
|
||||
break;
|
||||
case UC_SPARC_REG_FP:
|
||||
SPARC_CPU(uc, mycpu)->env.regwptr[22] = *(uint64_t *)value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue