mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/mips: Update ITU to utilize SAARI and SAAR CP0 registers
Update ITU to utilize SAARI and SAAR CP0 registers. Reviewed-by: Stefan Markovic <smarkovic@wavecomp.com> Signed-off-by: Yongbok Kim <yongbok.kim@mips.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
This commit is contained in:
parent
e5345d9675
commit
043715d1e0
5 changed files with 54 additions and 6 deletions
|
@ -1635,6 +1635,13 @@ void helper_mtc0_saar(CPUMIPSState *env, target_ulong arg1)
|
|||
uint32_t target = env->CP0_SAARI & 0x3f;
|
||||
if (target < 2) {
|
||||
env->CP0_SAAR[target] = arg1 & 0x00000ffffffff03fULL;
|
||||
switch (target) {
|
||||
case 0:
|
||||
if (env->itu) {
|
||||
itc_reconfigure(env->itu);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1645,6 +1652,13 @@ void helper_mthc0_saar(CPUMIPSState *env, target_ulong arg1)
|
|||
env->CP0_SAAR[target] =
|
||||
(((uint64_t) arg1 << 32) & 0x00000fff00000000ULL) |
|
||||
(env->CP0_SAAR[target] & 0x00000000ffffffffULL);
|
||||
switch (target) {
|
||||
case 0:
|
||||
if (env->itu) {
|
||||
itc_reconfigure(env->itu);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue