mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Switch MIPS branch handling to TCG, and clean out pointless wrapper
functions/macros. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4533 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
70cff25e78
commit
8e9ade681b
2 changed files with 302 additions and 466 deletions
|
@ -479,48 +479,6 @@ void op_movt (void)
|
||||||
FORCE_RET();
|
FORCE_RET();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Branches */
|
|
||||||
/* Branch to register */
|
|
||||||
void op_save_breg_target (void)
|
|
||||||
{
|
|
||||||
env->btarget = T1;
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
|
|
||||||
void op_breg (void)
|
|
||||||
{
|
|
||||||
env->PC[env->current_tc] = env->btarget;
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
|
|
||||||
void op_save_btarget (void)
|
|
||||||
{
|
|
||||||
env->btarget = PARAM1;
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(TARGET_MIPS64)
|
|
||||||
void op_save_btarget64 (void)
|
|
||||||
{
|
|
||||||
env->btarget = ((uint64_t)PARAM1 << 32) | (uint32_t)PARAM2;
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Conditional branch */
|
|
||||||
void op_set_bcond (void)
|
|
||||||
{
|
|
||||||
env->bcond = T0;
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
|
|
||||||
void op_jnz_bcond (void)
|
|
||||||
{
|
|
||||||
if (env->bcond)
|
|
||||||
GOTO_LABEL_PARAM(1);
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* CP0 functions */
|
/* CP0 functions */
|
||||||
void op_mfc0_index (void)
|
void op_mfc0_index (void)
|
||||||
{
|
{
|
||||||
|
@ -2564,20 +2522,6 @@ void op_save_state (void)
|
||||||
FORCE_RET();
|
FORCE_RET();
|
||||||
}
|
}
|
||||||
|
|
||||||
void op_save_pc (void)
|
|
||||||
{
|
|
||||||
env->PC[env->current_tc] = PARAM1;
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(TARGET_MIPS64)
|
|
||||||
void op_save_pc64 (void)
|
|
||||||
{
|
|
||||||
env->PC[env->current_tc] = ((uint64_t)PARAM1 << 32) | (uint32_t)PARAM2;
|
|
||||||
FORCE_RET();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void op_wait (void)
|
void op_wait (void)
|
||||||
{
|
{
|
||||||
env->halted = 1;
|
env->halted = 1;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue