Re: [PATCH v2 1/2] target/riscv: Reduce duplicated code in trans_rvh.c.inc

2021-02-23 Thread Richard Henderson
On 2/22/21 10:49 AM, Alex Richardson wrote: > I rencently merged CHERI QEMU up to 5.2, and we have to modify all > functions that perform memory accesses. Factoring these almost-indentical > functions into two shared helpers makes our changes a lot smaller and > should also make this code easier to

[PATCH v2 1/2] target/riscv: Reduce duplicated code in trans_rvh.c.inc

2021-02-22 Thread Alex Richardson
I rencently merged CHERI QEMU up to 5.2, and we have to modify all functions that perform memory accesses. Factoring these almost-indentical functions into two shared helpers makes our changes a lot smaller and should also make this code easier to maintain. --- target/riscv/insn_trans/trans_rvh.c.