mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
tcg: Introduce tcg_splitwx_to_{rx,rw}
Add two helper functions, using a global variable to hold the displacement. The displacement is currently always 0, so no change in behaviour. Begin using the functions in tcg common code only. Reviewed-by: Joelle van Dyne <j@getutm.app> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
4846cd37df
commit
db0c51a380
13 changed files with 105 additions and 40 deletions
4
disas.c
4
disas.c
|
@ -299,8 +299,10 @@ char *plugin_disas(CPUState *cpu, uint64_t addr, size_t size)
|
|||
}
|
||||
|
||||
/* Disassemble this for me please... (debugging). */
|
||||
void disas(FILE *out, void *code, unsigned long size)
|
||||
void disas(FILE *out, const void *ccode, unsigned long size)
|
||||
{
|
||||
/* TODO: Push constness through the disas backends. */
|
||||
void *code = (void *)ccode;
|
||||
uintptr_t pc;
|
||||
int count;
|
||||
CPUDebug s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue