target/i386: Fix OUTL debug output
PATCH 1/1 target/i386: Fix OUTL debug output
Fix OUTL instructions incorrectly displayed as OUTW.
--- target/i386/misc_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/misc_helper.c +1 -1
@@ -70,7 +70,7 @@ target_ulong helper_inw(CPUX86State *env, uint32_t port)void helper_outl (CPUX86State *env,uint32_t port,uint32_t data) {#ifdef CONFIG_USER_ONLY -fprintf (stderr,"outw: port=0x%04x, data=%08x\n" , port, data); +fprintf (stderr,"outl: port=0x%04x, data=%08x\n" , port, data);#else address_space_stl (&address_space_io, port, data,cpu_get_mem_attrs (env),NULL );
Signature · 1 line
2.21.3
Quoted 6 lines · Philippe Mathieu-Daudé
Fix OUTL instructions incorrectly displayed as OUTW.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/i386/misc_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
as far as it goes. We should of course never be printing to stderr, but logging or tracing.
r~
Quoted 8 lines · Richard Henderson
Quoted 6 lines · Philippe Mathieu-Daudé
Fix OUTL instructions incorrectly displayed as OUTW.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/i386/misc_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 4 lines
Reviewed-by Richard Henderson <[email protected]>as far as it goes. We should of course never be printing to stderr, but logging or tracing.
Yes, this is what the cpu_io() functions do in ioport.c, but they use MEMTXATTRS_UNSPECIFIED.
If we could replace one with another, I'm not sure which one is the correct one.
Maybe keep cpu_io() from ioport.c but add a MemTxAttrs argument?
Regards,
Phil.
Paolo Bonzini
AppliedQuoted 17 lines · Philippe Mathieu-Daudé
Quoted 8 lines · Richard Henderson
Quoted 6 lines · Philippe Mathieu-Daudé
Fix OUTL instructions incorrectly displayed as OUTW.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
target/i386/misc_helper.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 4 lines
Reviewed-by Richard Henderson <[email protected]>as far as it goes. We should of course never be printing to stderr, but logging or tracing.
Yes, this is what the
cpu_io()functions do inioport.c, but they useMEMTXATTRS_UNSPECIFIED.
Quoted 9 lines
If we could replace one with another, I'm not sure which one is the correct one.
Maybe keep
cpu_io()fromioport.cbut add a MemTxAttrs argument?Regards,
Phil.
Queued, thanks.
Paolo