MIPS64 addressing fixes, by Aurelien Jarno.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2888 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2007-05-28 17:03:28 +00:00
parent 4020f27707
commit 9b9e4393dd
3 changed files with 81 additions and 9 deletions

View file

@ -976,6 +976,14 @@ void op_save_btarget (void)
RETURN();
}
#ifdef TARGET_MIPS64
void op_save_btarget64 (void)
{
env->btarget = ((uint64_t)PARAM1 << 32) | (uint32_t)PARAM2;
RETURN();
}
#endif
/* Conditional branch */
void op_set_bcond (void)
{
@ -2409,6 +2417,14 @@ void op_save_pc (void)
RETURN();
}
#ifdef TARGET_MIPS64
void op_save_pc64 (void)
{
env->PC = ((uint64_t)PARAM1 << 32) | (uint32_t)PARAM2;
RETURN();
}
#endif
void op_interrupt_restart (void)
{
if (!(env->CP0_Status & (1 << CP0St_EXL)) &&