[SerialICE] New patch to review for serialice: e09b188 Fix display of offset

Kyösti Mälkki (kyosti.malkki@gmail.com) gerrit at coreboot.org
Wed Nov 14 16:07:07 CET 2012


Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1856

-gerrit

commit e09b188d4f333f637b1d08ed4f1a1fc381ceb505
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date:   Wed Nov 14 10:27:21 2012 +0200

    Fix display of offset
    
    If the size of a region was not power of two, the offset
    was incorrectly displayed.
    
    Change-Id: Ib8751fe1165917477f827c9032ef12ac58b1fab0
    Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
 SerialICE/simba/core_io.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SerialICE/simba/core_io.lua b/SerialICE/simba/core_io.lua
index 38a2df0..b89a3e2 100644
--- a/SerialICE/simba/core_io.lua
+++ b/SerialICE/simba/core_io.lua
@@ -19,9 +19,9 @@ end
 
 function io_base_post(f, action)
 	if (action.write) then
-		printk(f, action, "[%04x] <= %s\n", bit32.band(action.addr, (f.size - 1)), size_data(action.size, action.data))
+		printk(f, action, "[%04x] <= %s\n", action.addr - f.base, size_data(action.size, action.data))
 	else
-		printk(f, action, "[%04x] => %s\n", bit32.band(action.addr, (f.size - 1)), size_data(action.size, action.data))
+		printk(f, action, "[%04x] => %s\n", action.addr - f.base, size_data(action.size, action.data))
 	end
 	return true
 end



More information about the SerialICE mailing list