]> Git Repo - qemu.git/commitdiff
s390x: Adjust GDB stub
authorAlexander Graf <[email protected]>
Wed, 23 Mar 2011 09:58:07 +0000 (10:58 +0100)
committerAlexander Graf <[email protected]>
Fri, 20 May 2011 15:35:12 +0000 (17:35 +0200)
We have successfully lazilized cc computation, so we need to manually
trigger its calculation when gdb wants to fetch it. We also changed the
variable name, so writing it writes into a different field now.

Signed-off-by: Alexander Graf <[email protected]>
gdbstub.c

index 0838948c5cda3c12f8211dab4ef0348dbb5cc180..ae856f91d49d347a21a7ef16fa700d8cd95dba3a 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1436,7 +1436,11 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n)
             /* XXX */
             break;
         case S390_PC_REGNUM: GET_REGL(env->psw.addr); break;
-        case S390_CC_REGNUM: GET_REG32(env->cc); break;
+        case S390_CC_REGNUM:
+            env->cc_op = calc_cc(env, env->cc_op, env->cc_src, env->cc_dst,
+                                 env->cc_vr);
+            GET_REG32(env->cc_op);
+            break;
     }
 
     return 0;
@@ -1462,7 +1466,7 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t *mem_buf, int n)
             /* XXX */
             break;
         case S390_PC_REGNUM: env->psw.addr = tmpl; break;
-        case S390_CC_REGNUM: env->cc = tmp32; r=4; break;
+        case S390_CC_REGNUM: env->cc_op = tmp32; r=4; break;
     }
 
     return r;
This page took 0.030594 seconds and 4 git commands to generate.