[Qemu-devel] [PATCH 2/6] arm: move saturating arithmetic to helper.c

2012-03-24 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move saturating arithmetic to helper.c. Remove unused SIGNBIT64. Signed-off-by: Blue Swirl --- target-arm/helper.c| 132 +++ target-arm/helper.h| 20 target-arm/

Re: [Qemu-devel] [PATCH 2/6] arm: move saturating arithmetic to helper.c

2012-03-19 Thread Peter Maydell
On 19 March 2012 21:56, Blue Swirl wrote: > +#define SIGNBIT (uint32_t)0x8000 > +#define SIGNBIT64 ((uint64_t)1 << 63) SIGNBIT64 isn't used, I think. -- PMM

[Qemu-devel] [PATCH 2/6] arm: move saturating arithmetic to helper.c

2012-03-19 Thread Blue Swirl
Add an explicit CPUARMState parameter instead of relying on AREG0 and move saturating arithmetic to helper.c. Signed-off-by: Blue Swirl --- target-arm/helper.c| 133 +++ target-arm/helper.h| 20 target-arm/op_helper.c | 134 ---