]> Git Repo - qemu.git/commit - target/mips/op_helper.c
target-mips: Fix RDHWR on CP0.Count
authorAlex Smith <[email protected]>
Tue, 8 Sep 2015 10:34:11 +0000 (11:34 +0100)
committerLeon Alrae <[email protected]>
Fri, 18 Sep 2015 08:20:48 +0000 (09:20 +0100)
commitcdfcad788394ff53e317043e07b8e34f4987c659
treeb1eda6e19fc746d98ce0dd010e91e08e1b025b80
parentca6c7803d2beae43299a80f4549d36579881fc0b
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 <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: Leon Alrae <[email protected]>
Reviewed-by: Leon Alrae <[email protected]>
Reviewed-by: Aurelien Jarno <[email protected]>
Signed-off-by: Leon Alrae <[email protected]>
target-mips/op_helper.c
This page took 0.024177 seconds and 4 git commands to generate.