From 3151c5047256f5a9f72388ef8400f12648d223c3 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Sun, 16 Mar 2008 11:33:10 +0000 Subject: [PATCH] Added comments; no functional change git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1124 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/bus/ejtag.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jtag/src/bus/ejtag.c b/jtag/src/bus/ejtag.c index 93e79649..77eeb303 100644 --- a/jtag/src/bus/ejtag.c +++ b/jtag/src/bus/ejtag.c @@ -309,7 +309,11 @@ ejtag_gen_read( uint32_t *code, uint32_t adr ) /* 16-bit signed offset, phys -> kseg1 */ adr_lo = adr & 0xffff; - adr_hi = ((adr >> 16) & 0x1fff) + (adr_lo >> 15) + 0xa000; + adr_hi = ((adr >> 16) & 0x1fff); + /* Increment adr_hi if adr_lo < 0 */ + adr_hi += (adr_lo >> 15); + /* Bypass cache */ + adr_hi += 0xa000; if (BP->adr_hi != adr_hi) { BP->adr_hi = adr_hi;