This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [ARM] Clear reserved bits in CPSR
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Fri, 22 Apr 2016 14:10:16 +0100
- Subject: Re: [PATCH] [ARM] Clear reserved bits in CPSR
- Authentication-results: sourceware.org; auth=none
- References: <1461320654-22274-1-git-send-email-yao dot qi at linaro dot org>
On 04/22/2016 11:24 AM, Yao Qi wrote:
> + regs[ARM_CPSR_GREGNUM] = 0xff0fffff & regs[ARM_CPSR_GREGNUM];
No comments on the ARM specifics, but I think it's clearer to write
this as:
regs[ARM_CPSR_GREGNUM] &= 0xff0fffff;
Thanks,
Pedro Alves