mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
The 24k wants more watch and srsmap registers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2849 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
df1561e22d
commit
fd88b6abab
4 changed files with 45 additions and 261 deletions
|
@ -1171,15 +1171,15 @@ void op_mfc0_lladdr (void)
|
|||
RETURN();
|
||||
}
|
||||
|
||||
void op_mfc0_watchlo0 (void)
|
||||
void op_mfc0_watchlo (void)
|
||||
{
|
||||
T0 = (int32_t)env->CP0_WatchLo;
|
||||
T0 = (int32_t)env->CP0_WatchLo[PARAM1];
|
||||
RETURN();
|
||||
}
|
||||
|
||||
void op_mfc0_watchhi0 (void)
|
||||
void op_mfc0_watchhi (void)
|
||||
{
|
||||
T0 = env->CP0_WatchHi;
|
||||
T0 = env->CP0_WatchHi[PARAM1];
|
||||
RETURN();
|
||||
}
|
||||
|
||||
|
@ -1423,18 +1423,18 @@ void op_mtc0_config2 (void)
|
|||
RETURN();
|
||||
}
|
||||
|
||||
void op_mtc0_watchlo0 (void)
|
||||
void op_mtc0_watchlo (void)
|
||||
{
|
||||
/* Watch exceptions for instructions, data loads, data stores
|
||||
not implemented. */
|
||||
env->CP0_WatchLo = (T0 & ~0x7);
|
||||
env->CP0_WatchLo[PARAM1] = (T0 & ~0x7);
|
||||
RETURN();
|
||||
}
|
||||
|
||||
void op_mtc0_watchhi0 (void)
|
||||
void op_mtc0_watchhi (void)
|
||||
{
|
||||
env->CP0_WatchHi = (T0 & 0x40FF0FF8);
|
||||
env->CP0_WatchHi &= ~(env->CP0_WatchHi & T0 & 0x7);
|
||||
env->CP0_WatchHi[PARAM1] = (T0 & 0x40FF0FF8);
|
||||
env->CP0_WatchHi[PARAM1] &= ~(env->CP0_WatchHi[PARAM1] & T0 & 0x7);
|
||||
RETURN();
|
||||
}
|
||||
|
||||
|
@ -1551,9 +1551,9 @@ void op_dmfc0_lladdr (void)
|
|||
RETURN();
|
||||
}
|
||||
|
||||
void op_dmfc0_watchlo0 (void)
|
||||
void op_dmfc0_watchlo (void)
|
||||
{
|
||||
T0 = env->CP0_WatchLo;
|
||||
T0 = env->CP0_WatchLo[PARAM1];
|
||||
RETURN();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue