Skip to content

Commit

Permalink
common: Fix mmio_write64() to write high 32-bit offsetby 4 byte
Browse files Browse the repository at this point in the history
The write32 parameter will used by adding set-reg command write32 option.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Feb 2, 2024
1 parent ad67f4e commit 5c82929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static inline void mmio_write64(void *addr, uint64_t value, bool write32)

if (write32) {
mmio_write32(addr, value);
mmio_write32(addr + 1, value >> 32);
mmio_write32((uint32_t *)addr + 1, value >> 32);
return;
}

Expand Down

0 comments on commit 5c82929

Please sign in to comment.