Whilst trying to boot FreeBSD SPARC64, it became apparent that the existing
timer code doesn't behave correctly with respect to the NPT and INT_DIS
bits. This patchset corrects this behaviour and allows FreeBSD SPARC64 boot
to progress further.

Many thanks to Marius Strobl <mar...@alchemy.franken.de> for pointing me in
the right direction.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk>

Mark Cave-Ayland (3):
  sun4u: split out NPT and INT_DIS into separate CPUTimer fields
  sun4u: split NPT and INT_DIS accesses between timer and compare
    registers
  target-sparc: implement NPT timer bit

 hw/sparc64/sun4u.c       |   36 +++++++++++++++++++++++-------------
 target-sparc/cpu.h       |    2 ++
 target-sparc/helper.c    |   10 ++++++++--
 target-sparc/helper.h    |    2 +-
 target-sparc/translate.c |   18 +++++++++++++++---
 5 files changed, 49 insertions(+), 19 deletions(-)

-- 
1.7.10.4


Reply via email to