diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-20 14:02:14 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-20 14:02:14 +0000 |
commit | 28ab0e2edb36685da7280b24e665962754d9e4ff (patch) | |
tree | 7b199a68728ce9eac44a67f8016fb282a0636df7 /hw/pc.c | |
parent | b54ad0498e58cd81f35f815ecb887af2f44ab6f6 (diff) |
added cpu_get_tsc()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@837 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r-- | hw/pc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -57,6 +57,13 @@ static void ioportF0_write(void *opaque, uint32_t addr, uint32_t data) pic_set_irq(13, 0); } +/* TSC handling */ + +uint64_t cpu_get_tsc(CPUX86State *env) +{ + return qemu_get_clock(vm_clock); +} + /* PC cmos mappings */ #define REG_EQUIPMENT_BYTE 0x14 |