From 713c001242d7d85c08b66c05ebfad89f6fca96ee Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 15 Feb 2017 17:10:53 -0800 Subject: [PATCH] Make MemTest32 pass. Change-Id: I9be90b07be695c976380f9fd50b971f8bb94f513 --- src/target/riscv/riscv-013.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 1744efb0e..edce7d1d3 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -2396,8 +2396,8 @@ static int write_memory(struct target *target, uint32_t address, case 4: value = buffer[4*i] | ((uint32_t) buffer[4*i+1] << 8) | - ((uint32_t) buffer[4*i+2] << 8) | - ((uint32_t) buffer[4*i+3] << 8); + ((uint32_t) buffer[4*i+2] << 16) | + ((uint32_t) buffer[4*i+3] << 24); break; default: return ERROR_FAIL;