[SerialICE] New patch to review for serialice: 01417da Make ROM size more easily configurable
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Thu Dec 1 15:38:26 CET 2011
Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/466
-gerrit
commit 01417da079989be1558551e404022480a7e7230b
Author: Patrick Georgi <patrick.georgi at secunet.com>
Date: Thu Dec 1 15:09:08 2011 +0100
Make ROM size more easily configurable
Change-Id: I683ebcb59c17b2460c797d6e94f3c15384d26407
Signed-off-by: Patrick Georgi <patrick.georgi at secunet.com>
---
SerialICE/scripts/serialice.lua | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/SerialICE/scripts/serialice.lua b/SerialICE/scripts/serialice.lua
index 7346046..3a8bf74 100644
--- a/SerialICE/scripts/serialice.lua
+++ b/SerialICE/scripts/serialice.lua
@@ -209,6 +209,9 @@ ip_logging = false
SerialICE_pci_device = 0
+rom_size = 4 * 1024 * 1024
+rom_base = 0x100000000 - rom_size
+
-- SerialICE_io_read_filter is the filter function for IO reads.
--
-- Parameters:
@@ -456,7 +459,7 @@ function SerialICE_memory_read_filter(addr, size)
return false, true, 0
end
- if addr >= 0xfff00000 and addr <= 0xffffffff then
+ if addr >= rom_base and addr <= 0xffffffff then
-- ROM accesses go to Qemu only
return false, true, 0
elseif addr >= PCIe_bar and addr <= (PCIe_bar + PCIe_size) then
@@ -532,7 +535,7 @@ function SerialICE_memory_write_filter(addr, size, data)
return false, true, data
end
- if addr >= 0xfff00000 and addr <= 0xffffffff then
+ if addr >= rom_base and addr <= 0xffffffff then
printf("\nWARNING: write access to ROM?\n")
-- ROM accesses go to Qemu only
return false, true, data
@@ -671,7 +674,7 @@ function SerialICE_memory_read_log(addr, size, data, target)
if addr >= 0xe0000 and addr <= 0xfffff and not log_rom_access then
return
end
- if addr >= 0xfff00000 and addr <= 0xffffffff and not log_rom_access then
+ if addr >= rom_base and addr <= 0xffffffff and not log_rom_access then
return
end
More information about the SerialICE
mailing list