summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ruthven <Brian.Ruthven@oracle.com>2022-03-28 17:50:49 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-03-31 20:44:06 +0000
commita79bd188fec51fe9bcafd3e0767bed1fbe715795 (patch)
treeacc42c8f33eb9e62d0079174b80adf2f6bb3924f
parent6f9fce03609351b5ffcf394797e975b6fd47ab0c (diff)
x86emu: re-align breaks in ins() and outs()
Makes the 4-byte cases match those for 1- & 2-byte handling, moving the break from being unconditionally hit the first time through the to loop to after the loop is done. Fixes Solaris Studio compiler warnings: "prim_ops.c", line 2626: warning: end-of-loop code not reached "prim_ops.c", line 2692: warning: end-of-loop code not reached Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--hw/xfree86/x86emu/prim_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/x86emu/prim_ops.c b/hw/xfree86/x86emu/prim_ops.c
index 35ef94710..47877eb26 100644
--- a/hw/xfree86/x86emu/prim_ops.c
+++ b/hw/xfree86/x86emu/prim_ops.c
@@ -2622,8 +2622,8 @@ ins(int size)
store_data_long_abs(M.x86.R_ES, M.x86.R_DI,
(*sys_inl) (M.x86.R_DX));
M.x86.R_DI += inc;
- break;
}
+ break;
}
M.x86.R_CX = 0;
if (M.x86.mode & SYSMODE_PREFIX_DATA) {
@@ -2688,8 +2688,8 @@ outs(int size)
(*sys_outl) (M.x86.R_DX,
fetch_data_long_abs(M.x86.R_ES, M.x86.R_SI));
M.x86.R_SI += inc;
- break;
}
+ break;
}
M.x86.R_CX = 0;
if (M.x86.mode & SYSMODE_PREFIX_DATA) {