Skip to contentSkip to conversation

bsd-user: Fix operand to cpu_x86_exec

PATCH Applied Richard Henderson 2 participants 3 messages Jul 29, 2015 – Jul 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bsd-user: Fix operand to cpu_x86_exec

---
This buglet, from whenever we re-orged the parameters, means that all x86-bsd-user invocations die instantly.

r~

---
 bsd-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bsd-user/main.c +1 -1
index f46728b..ee68daa 100644
@@ -173,7 +173,7 @@ void cpu_loop(CPUX86State *env)
     //target_siginfo_t info;
 
     for(;;) {
-        trapnr = cpu_x86_exec(env);
+        trapnr = cpu_x86_exec(cs);
         switch(trapnr) {
         case 0x80:
             /* syscall from int $0x80 */
Signature · 1 line
2.4.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Richard Henderson

---
This buglet, from whenever we re-orged the parameters, means that all x86-bsd-user invocations die instantly.

r~

---
 bsd-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bsd-user/main.c +0 -0
index f46728b..ee68daa 100644

bsd-user/main.c void cpu_loop(CPUX86State *env) · line 179

Quoted 8 lines
bsd-user/main.c +1 -1
@@ -173,7 +173,7 @@ void cpu_loop(CPUX86State *env)
     //target_siginfo_t info;
 
     for(;;) {
-        trapnr = cpu_x86_exec(env);
+        trapnr = cpu_x86_exec(cs);
         switch(trapnr) {
         case 0x80:
             /* syscall from int $0x80 */

Whoops. This sounds like it's worth putting into 2.4...

thanks
-- PMM

#2 lore raw
Quoted 28 lines · Peter Maydell
Quoted 16 lines · Richard Henderson

---
This buglet, from whenever we re-orged the parameters, means that all x86-bsd-user invocations die instantly.

r~

---
 bsd-user/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bsd-user/main.c +0 -0
index f46728b..ee68daa 100644

bsd-user/main.c void cpu_loop(CPUX86State *env) · line 179

Quoted 8 lines
bsd-user/main.c +1 -1
@@ -173,7 +173,7 @@ void cpu_loop(CPUX86State *env)
     //target_siginfo_t info;
 
     for(;;) {
-        trapnr = cpu_x86_exec(env);
+        trapnr = cpu_x86_exec(cs);
         switch(trapnr) {
         case 0x80:
             /* syscall from int $0x80 */

Whoops. This sounds like it's worth putting into 2.4...

Quoted 1 line

Applied, thanks.

-- PMM