- state->srr0 = saved_state->srr0;
- state->srr1 = saved_state->srr1;
- state->r0 = saved_state->r0;
- state->r1 = saved_state->r1;
- state->r2 = saved_state->r2;
- state->r3 = saved_state->r3;
- state->r4 = saved_state->r4;
- state->r5 = saved_state->r5;
- state->r6 = saved_state->r6;
- state->r7 = saved_state->r7;
- state->r8 = saved_state->r8;
- state->r9 = saved_state->r9;
- state->r10 = saved_state->r10;
- state->r11 = saved_state->r11;
- state->r12 = saved_state->r12;
- state->r13 = saved_state->r13;
- state->r14 = saved_state->r14;
- state->r15 = saved_state->r15;
- state->r16 = saved_state->r16;
- state->r17 = saved_state->r17;
- state->r18 = saved_state->r18;
- state->r19 = saved_state->r19;
- state->r20 = saved_state->r20;
- state->r21 = saved_state->r21;
- state->r22 = saved_state->r22;
- state->r23 = saved_state->r23;
- state->r24 = saved_state->r24;
- state->r25 = saved_state->r25;
- state->r26 = saved_state->r26;
- state->r27 = saved_state->r27;
- state->r28 = saved_state->r28;
- state->r29 = saved_state->r29;
- state->r30 = saved_state->r30;
- state->r31 = saved_state->r31;
- state->cr = saved_state->cr;
- state->xer = saved_state->xer;
- state->lr = saved_state->lr;
- state->ctr = saved_state->ctr;
- state->mq = saved_state->mq; /* This is BOGUS ! (601) ONLY */
+ state->srr0 = (unsigned int)saved_state->save_srr0;
+ state->srr1 = (unsigned int)saved_state->save_srr1;
+ state->r0 = (unsigned int)saved_state->save_r0;
+ state->r1 = (unsigned int)saved_state->save_r1;
+ state->r2 = (unsigned int)saved_state->save_r2;
+ state->r3 = (unsigned int)saved_state->save_r3;
+ state->r4 = (unsigned int)saved_state->save_r4;
+ state->r5 = (unsigned int)saved_state->save_r5;
+ state->r6 = (unsigned int)saved_state->save_r6;
+ state->r7 = (unsigned int)saved_state->save_r7;
+ state->r8 = (unsigned int)saved_state->save_r8;
+ state->r9 = (unsigned int)saved_state->save_r9;
+ state->r10 = (unsigned int)saved_state->save_r10;
+ state->r11 = (unsigned int)saved_state->save_r11;
+ state->r12 = (unsigned int)saved_state->save_r12;
+ state->r13 = (unsigned int)saved_state->save_r13;
+ state->r14 = (unsigned int)saved_state->save_r14;
+ state->r15 = (unsigned int)saved_state->save_r15;
+ state->r16 = (unsigned int)saved_state->save_r16;
+ state->r17 = (unsigned int)saved_state->save_r17;
+ state->r18 = (unsigned int)saved_state->save_r18;
+ state->r19 = (unsigned int)saved_state->save_r19;
+ state->r20 = (unsigned int)saved_state->save_r20;
+ state->r21 = (unsigned int)saved_state->save_r21;
+ state->r22 = (unsigned int)saved_state->save_r22;
+ state->r23 = (unsigned int)saved_state->save_r23;
+ state->r24 = (unsigned int)saved_state->save_r24;
+ state->r25 = (unsigned int)saved_state->save_r25;
+ state->r26 = (unsigned int)saved_state->save_r26;
+ state->r27 = (unsigned int)saved_state->save_r27;
+ state->r28 = (unsigned int)saved_state->save_r28;
+ state->r29 = (unsigned int)saved_state->save_r29;
+ state->r30 = (unsigned int)saved_state->save_r30;
+ state->r31 = (unsigned int)saved_state->save_r31;
+ state->cr = (unsigned int)saved_state->save_cr;
+ state->xer = (unsigned int)saved_state->save_xer;
+ state->lr = (unsigned int)saved_state->save_lr;
+ state->ctr = (unsigned int)saved_state->save_ctr;
+}
+
+static void
+kdp_getintegerstate64(
+ struct ppc_thread_state64 *state
+)
+{
+ struct savearea *saved_state;
+
+ saved_state = kdp.saved_state;
+
+ bzero((char *)state,sizeof (struct ppc_thread_state64)) ;
+
+ state->srr0 = saved_state->save_srr0;
+ state->srr1 = saved_state->save_srr1;
+ state->r0 = saved_state->save_r0;
+ state->r1 = saved_state->save_r1;
+ state->r2 = saved_state->save_r2;
+ state->r3 = saved_state->save_r3;
+ state->r4 = saved_state->save_r4;
+ state->r5 = saved_state->save_r5;
+ state->r6 = saved_state->save_r6;
+ state->r7 = saved_state->save_r7;
+ state->r8 = saved_state->save_r8;
+ state->r9 = saved_state->save_r9;
+ state->r10 = saved_state->save_r10;
+ state->r11 = saved_state->save_r11;
+ state->r12 = saved_state->save_r12;
+ state->r13 = saved_state->save_r13;
+ state->r14 = saved_state->save_r14;
+ state->r15 = saved_state->save_r15;
+ state->r16 = saved_state->save_r16;
+ state->r17 = saved_state->save_r17;
+ state->r18 = saved_state->save_r18;
+ state->r19 = saved_state->save_r19;
+ state->r20 = saved_state->save_r20;
+ state->r21 = saved_state->save_r21;
+ state->r22 = saved_state->save_r22;
+ state->r23 = saved_state->save_r23;
+ state->r24 = saved_state->save_r24;
+ state->r25 = saved_state->save_r25;
+ state->r26 = saved_state->save_r26;
+ state->r27 = saved_state->save_r27;
+ state->r28 = saved_state->save_r28;
+ state->r29 = saved_state->save_r29;
+ state->r30 = saved_state->save_r30;
+ state->r31 = saved_state->save_r31;
+ state->cr = saved_state->save_cr;
+ state->xer = saved_state->save_xer;
+ state->lr = saved_state->save_lr;
+ state->ctr = saved_state->save_ctr;