diff options
Diffstat (limited to 'hw/core/ptimer.c')
-rw-r--r-- | hw/core/ptimer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/ptimer.c b/hw/core/ptimer.c index d0b2f38082..05b0c276eb 100644 --- a/hw/core/ptimer.c +++ b/hw/core/ptimer.c @@ -225,6 +225,11 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload) } } +uint64_t ptimer_get_limit(ptimer_state *s) +{ + return s->limit; +} + const VMStateDescription vmstate_ptimer = { .name = "ptimer", .version_id = 1, |