diff options
author | Alex Smith <alex.smith@imgtec.com> | 2015-09-08 11:34:11 +0100 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2015-09-18 09:20:48 +0100 |
commit | cdfcad788394ff53e317043e07b8e34f4987c659 (patch) | |
tree | b1eda6e19fc746d98ce0dd010e91e08e1b025b80 /cpu-exec.c | |
parent | ca6c7803d2beae43299a80f4549d36579881fc0b (diff) |
target-mips: Fix RDHWR on CP0.Count
For RDHWR on the CP0.Count register, env->CP0_Count was being returned.
This value is a delta against the QEMU_CLOCK_VIRTUAL clock, not the
correct current value of CP0.Count. Use cpu_mips_get_count() instead.
Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'cpu-exec.c')
0 files changed, 0 insertions, 0 deletions