Browse Source

Remove no-longer-necessary typecast

It was previously necessary because we were shifting left before
assigning to a reg_t, but that changed in the previous commit.
pull/1047/head
Scott Johnson 4 years ago
parent
commit
f0d8478742
No known key found for this signature in database GPG Key ID: 61C1F01D3D1410C9
  1. 2
      riscv/mmu.h

2
riscv/mmu.h

@ -58,7 +58,7 @@ public:
reg_t res = 0;
for (size_t i = 0; i < size; i++) {
const reg_t byteaddr = addr + (target_big_endian? size-1-i : i);
const reg_t bytedata = (reg_t)load_uint8(byteaddr);
const reg_t bytedata = load_uint8(byteaddr);
res += bytedata << (i * 8);
}
return res;

Loading…
Cancel
Save