commit | 911f446d32283676dee7546be4015dac25fe463b | [log] [tgz] |
---|---|---|
author | Stefan Reinauer <reinauer@chromium.org> | Thu Jul 26 15:15:38 2012 -0700 |
committer | Patrick Georgi <patrick@georgi-clan.de> | Fri Jul 27 14:41:20 2012 +0200 |
tree | c9091def1defd8456ac7180ea1e4d9f69f1357a6 | |
parent | 08ef498d0bfd5d3cfaf70cdad1a8780d9dd2143e [diff] |
x86emu: Add an RDTSC implementation to the x86 emulator This instruction is being used in some debug VBIOSes. This implementation doesn't even try to be accurate. Instead, it just increments the counter by a fixed amount every time an rdtsc instruction in encountered, to avoid divides by zero. Imported from: http://cgit.freedesktop.org/xorg/xserver/commit/?id=c4b7e9d1c16797c3e4b1200b40aceab5696a7fb8 Change-Id: I8fba1a060c57ccb7bbd44aa321dd349bc56bf574 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1362 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>