diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2014-01-17 19:25:57 +0100 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2014-02-10 16:46:28 +0100 |
commit | b4dd99a3636f5a3044dfd9dba7653ca377a9aeba (patch) | |
tree | 0ec10e09bdec7994ad111ba47732b7820691c128 /target-mips/op_helper.c | |
parent | b4160af160ba045e3a25013b4def4a39f09cbb78 (diff) | |
download | qemu-b4dd99a3636f5a3044dfd9dba7653ca377a9aeba.zip qemu-b4dd99a3636f5a3044dfd9dba7653ca377a9aeba.tar.gz qemu-b4dd99a3636f5a3044dfd9dba7653ca377a9aeba.tar.bz2 |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index ed8dde8..eaf4d26 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; |