fix(v5te): fix off by one in DTCM handler
This commit is contained in:
parent
4d3814db36
commit
2c5d474c56
|
@ -229,7 +229,7 @@ pub fn Arm32(comptime isa: Architecture) type {
|
||||||
if (address < 0x0000_0000 + self.itcm.virt.size)
|
if (address < 0x0000_0000 + self.itcm.virt.size)
|
||||||
return readInt(T, self.itcm.buf[address & self.itcm.virt.mask ..][0..@sizeOf(T)]);
|
return readInt(T, self.itcm.buf[address & self.itcm.virt.mask ..][0..@sizeOf(T)]);
|
||||||
|
|
||||||
if (dtcm_base < address and address < dtcm_base + dtcm_size)
|
if (dtcm_base <= address and address < dtcm_base + dtcm_size)
|
||||||
return readInt(T, self.dtcm.buf[address & self.dtcm.virt.mask ..][0..@sizeOf(T)]);
|
return readInt(T, self.dtcm.buf[address & self.dtcm.virt.mask ..][0..@sizeOf(T)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue