[Qemu-devel] [PATCH v3 1/9] target/ppc: fix typo in SIMM5 extraction helper

Mark Cave-Ayland posted 9 patches 6 years, 10 months ago
There is a newer version of this series
[Qemu-devel] [PATCH v3 1/9] target/ppc: fix typo in SIMM5 extraction helper
Posted by Mark Cave-Ayland 6 years, 10 months ago
As the macro name suggests, the argument should be signed and not unsigned.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
 target/ppc/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/ppc/internal.h b/target/ppc/internal.h
index a9bcadff42..8b35863549 100644
--- a/target/ppc/internal.h
+++ b/target/ppc/internal.h
@@ -124,7 +124,7 @@ EXTRACT_SHELPER(SIMM, 0, 16);
 /* 16 bits unsigned immediate value */
 EXTRACT_HELPER(UIMM, 0, 16);
 /* 5 bits signed immediate value */
-EXTRACT_HELPER(SIMM5, 16, 5);
+EXTRACT_SHELPER(SIMM5, 16, 5);
 /* 5 bits signed immediate value */
 EXTRACT_HELPER(UIMM5, 16, 5);
 /* 4 bits unsigned immediate value */
-- 
2.11.0


Re: [Qemu-devel] [PATCH v3 1/9] target/ppc: fix typo in SIMM5 extraction helper
Posted by Richard Henderson 6 years, 10 months ago
On 12/20/18 8:31 AM, Mark Cave-Ayland wrote:
> As the macro name suggests, the argument should be signed and not unsigned.
> 
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> ---
>  target/ppc/internal.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~