summaryrefslogtreecommitdiffstats
path: root/target-sparc/cpu.h
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2015-11-08 12:27:38 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:28:21 -0600
commita69004c757a0476f97e771841a2c1937b57a37fa (patch)
tree9f3577581613ced429e066d102f5ac87449466da /target-sparc/cpu.h
parentaee1724cb42c4e6aeeafec220bfe82aef9447f63 (diff)
downloadhqemu-a69004c757a0476f97e771841a2c1937b57a37fa.zip
hqemu-a69004c757a0476f97e771841a2c1937b57a37fa.tar.gz
sun4u: split out NPT and INT_DIS into separate CPUTimer fields
Currently there is confusion between use of these bits for the timer and timer compare registers (while they both have the same value, the behaviour is different). Split into two separate CPUTimer fields so we can always reference the correct value. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-By: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'target-sparc/cpu.h')
-rw-r--r--target-sparc/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index 9fa770b..4aa689e 100644
--- a/target-sparc/cpu.h
+++ b/target-sparc/cpu.h
@@ -366,6 +366,8 @@ struct CPUTimer
uint32_t frequency;
uint32_t disabled;
uint64_t disabled_mask;
+ uint32_t npt;
+ uint64_t npt_mask;
int64_t clock_offset;
QEMUTimer *qtimer;
};
OpenPOWER on IntegriCloud