[Qemu-devel] [PATCH v2] target-mips: Fix RDHWR on CP0.Count

2015-09-08 Thread Alex Smith
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 Cc: Aurelien Jarno Cc: Leon Alrae --- Changes in

Re: [Qemu-devel] [PATCH] target-mips: Fix RDHWR on CP0.Count

2015-09-08 Thread Alex Smith
On 08/09/2015 10:44, Leon Alrae wrote: > On 04/09/15 09:21, Alex Smith wrote: >> 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_

[Qemu-devel] [PATCH] target-mips: Fix RDHWR on CP0.Count

2015-09-04 Thread Alex Smith
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 Cc: Aurelien Jarno Cc: Leon Alrae --- target-m