diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2013-05-15 00:19:49 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-06-04 22:57:26 +0200 |
commit | 4cdc5d6fc6ea6f460414728e026660954d0adb1d (patch) | |
tree | 60a982a073d8af1fe0957226e4122d29675331d9 /src/device/oprom/yabel/biosemu.c | |
parent | 67f556c2962eb56e87e5df0bec78671005822b77 (diff) |
Yabel : Add tracing option needed by i915tool.
This patch was made by listenning to what Ron Minnich told
me to do on #coreboot IRC channel on Freenode with my
adaptations on top.
i915tool is at https://code.google.com/p/i915tool/ ,
the one in coreboot is outdated.
Change-Id: I13cd684f4c290114836fbd7babd461153e8d6124
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Reviewed-on: http://review.coreboot.org/3277
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/device/oprom/yabel/biosemu.c')
-rw-r--r-- | src/device/oprom/yabel/biosemu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/device/oprom/yabel/biosemu.c b/src/device/oprom/yabel/biosemu.c index 2a2ca312cb..f42d4e1735 100644 --- a/src/device/oprom/yabel/biosemu.c +++ b/src/device/oprom/yabel/biosemu.c @@ -31,6 +31,10 @@ #include <device/device.h> #include "compat/rtas.h" +#if CONFIG_X86EMU_DEBUG_TIMINGS +struct mono_time zero; +#endif + static X86EMU_memFuncs my_mem_funcs = { my_rdb, my_rdw, my_rdl, my_wrb, my_wrw, my_wrl @@ -99,6 +103,11 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long rom_ad #endif #endif +#if CONFIG_X86EMU_DEBUG_TIMINGS + /* required for i915tool compatible output */ + zero.microseconds = 0; +#endif + if (biosmem_size < MIN_REQUIRED_VMEM_SIZE) { printf("Error: Not enough virtual memory: %x, required: %x!\n", biosmem_size, MIN_REQUIRED_VMEM_SIZE); |