From 9464379f8a017f6002a8f51d38ab23cddd5292c8 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Thu, 22 Oct 2020 15:20:11 +0300 Subject: [PATCH] rsp: Remove small IO writes RMW, hw does not do that --- rsp/interface.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rsp/interface.c b/rsp/interface.c index 04a2f67..3671c21 100644 --- a/rsp/interface.c +++ b/rsp/interface.c @@ -144,11 +144,6 @@ int read_sp_regs2(void *opaque, uint32_t address, uint32_t *word) { int write_sp_mem(void *opaque, uint32_t address, uint32_t word, uint32_t dqm) { struct rsp *rsp = (struct rsp *) opaque; unsigned offset = address & 0x1FFC; - uint32_t orig_word; - - memcpy(&orig_word, rsp->mem + offset, sizeof(orig_word)); - orig_word = byteswap_32(orig_word) & ~dqm; - word = orig_word | word; // Update opcode cache. if (offset & 0x1000) {