[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 005/126] target-s390: Fix gdbstub
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 005/126] target-s390: Fix gdbstub |
Date: |
Wed, 12 Sep 2012 08:11:54 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 |
On 09/12/2012 06:25 AM, Alexander Graf wrote:
>> + case S390_PSWM_REGNUM:
>> + env->psw.mask = tmpl;
>> + env->cc_op = (tmpl >> 13) & 3;
>
> Are you sure this is correct? I thought gdbstub would just ignore the cc bits.
Well... no it won't ignore the cc bits. But it would appear that I've got
them at the wrong location. From gdb/s390-tdep.c:
if (regnum == tdep->cc_regnum)
{
enum register_status status;
status = regcache_raw_read_unsigned (regcache, S390_PSWM_REGNUM, &val);
if (status == REG_VALID)
{
if (register_size (gdbarch, S390_PSWA_REGNUM) == 4)
val = (val >> 12) & 3;
else
val = (val >> 44) & 3;
store_unsigned_integer (buf, regsize, byte_order, val);
}
return status;
}
r~
- [Qemu-devel] [PATCH 000/126] Rewrite s390x translator, Richard Henderson, 2012/09/09
- [Qemu-devel] [PATCH 001/126] tcg: Add TCGV_IS_UNUSED_*, Richard Henderson, 2012/09/09
- [Qemu-devel] [PATCH 006/126] target-s390: Add missing temp_free in gen_op_calc_cc, Richard Henderson, 2012/09/09
- [Qemu-devel] [PATCH 002/126] tcg: Add TCG_COND_NEVER, TCG_COND_ALWAYS, Richard Henderson, 2012/09/09
- [Qemu-devel] [PATCH 004/126] target-s390: Fix disassembly of cpsdr, Richard Henderson, 2012/09/09
- [Qemu-devel] [PATCH 005/126] target-s390: Fix gdbstub, Richard Henderson, 2012/09/09
[Qemu-devel] [PATCH 003/126] target-s390: Disassemble more z10 and z196 opcodes, Richard Henderson, 2012/09/09
[Qemu-devel] [PATCH 007/126] target-s390: Use TCG registers for FPR, Richard Henderson, 2012/09/09
[Qemu-devel] [PATCH 009/126] target-s390: Split o ut disas_jcc, Richard Henderson, 2012/09/09
[Qemu-devel] [PATCH 011/126] target-s390: Convert ADD HALFWORD, Richard Henderson, 2012/09/09
[Qemu-devel] [PATCH 012/126] target-s390: Implement SUBTRACT HALFWORD, Richard Henderson, 2012/09/09