rsp: Remove small IO writes RMW, hw does not do that

This commit is contained in:
Lauri Kasanen 2020-10-22 15:20:11 +03:00 committed by Simon Eriksson
parent 2abc63d78a
commit 9464379f8a

View file

@ -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) {