aboutsummaryrefslogtreecommitdiff
path: root/target-mips/op_helper.c
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2014-01-17 19:25:57 +0100
committerPetar Jovanovic <petar.jovanovic@imgtec.com>2014-02-10 16:46:28 +0100
commitb4dd99a3636f5a3044dfd9dba7653ca377a9aeba (patch)
tree0ec10e09bdec7994ad111ba47732b7820691c128 /target-mips/op_helper.c
parentb4160af160ba045e3a25013b4def4a39f09cbb78 (diff)
target-mips: add support for CP0_Config5
Add CP0_Config5, define rw_bitmask and enable modifications. Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com> Reviewed-by: Eric Johnson <eric.johnson@imgtec.com>
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r--target-mips/op_helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index ed8dde8ccc..eaf4d2621a 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -1495,6 +1495,12 @@ void helper_mtc0_config4(CPUMIPSState *env, target_ulong arg1)
(arg1 & env->CP0_Config4_rw_bitmask);
}
+void helper_mtc0_config5(CPUMIPSState *env, target_ulong arg1)
+{
+ env->CP0_Config5 = (env->CP0_Config5 & (~env->CP0_Config5_rw_bitmask)) |
+ (arg1 & env->CP0_Config5_rw_bitmask);
+}
+
void helper_mtc0_lladdr(CPUMIPSState *env, target_ulong arg1)
{
target_long mask = env->CP0_LLAddr_rw_bitmask;