Re: [Qemu-devel] [RISU PATCH] risu: Include on ppc64

2019-06-09 Thread Sandipan Das
not provide a definition of that struct. > > Signed-off-by: Peter Maydell LGTM. Reviewed-by: Sandipan Das > --- > I need this to be able to do the ppc64le cross-build on my > Ubuntu Bionic x86-64 system. > > risu_ppc64.c | 2 ++ > risu_reginfo_ppc64.c | 1 + > 2 f

[Qemu-devel] [PATCH risu] ppc64.risu: Fix pattern for darn

2018-09-06 Thread Sandipan Das
This fixes the pattern for the Deliver A Random Number (darn) instruction to ensure that the value of the L field, which is used to determine the type and length of the generated random number, is never 3 which is currently reserved for future use. Signed-off-by: Sandipan Das --- ppc64.risu | 2

[Qemu-devel] [PATCH] target-ppc: Extend HWCAP2 bits for ISA 3.0

2018-09-06 Thread Sandipan Das
$ qemu-ppc64le -cpu power9 test 0x8c00 After: $ qemu-ppc64le -cpu power8 test 0x8c00 $ qemu-ppc64le -cpu power9 test 0x8c80 Signed-off-by: Sandipan Das --- linux-user/elfload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c

[Qemu-devel] [PATCH risu v2 3/3] risu_reginfo_ppc64.c: Fix register name prefix

2018-03-06 Thread Sandipan Das
Use 'f' instead of 'r' as the prefix when dumping the values of floating-point registers. Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.com> --- risu_reginfo_ppc64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/risu_reginfo_ppc64.c b/risu_reginfo_ppc64.c

[Qemu-devel] [PATCH risu v2 2/3] ppc64.risu: Fix pattern for load qword

2018-03-06 Thread Sandipan Das
of the registers. This can cause a mismatch as the addresses may vary across the master and the apprentice instances. This is avoided by always adding 8 to the offset used for calculating the ea. Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.com> --- ppc64.risu | 4 ++-- 1 file chan

[Qemu-devel] [PATCH risu v2 1/3] ppc64.risu: Add missing byte and dword loads

2018-03-06 Thread Sandipan Das
The patterns for the following instructions are added: * Load Byte and Zero (lbz) * Load Byte and Zero with Update (lbzu) * Load Byte and Zero Indexed (lbzx) * Load Byte and Zero with Update Indexed (lbzux) * Load Doubleword (ld) Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.

[Qemu-devel] [PATCH risu v2 0/3] Miscellaneous fixes for powerpc64

2018-03-06 Thread Sandipan Das
. Changelog: v2 -> Added a cover letter as requested by Peter. Sandipan Das (3): ppc64.risu: Add missing byte and dword loads ppc64.risu: Fix pattern for load qword risu_reginfo_ppc64.c: Fix register name prefix ppc64.risu | 29 +++-- risu_reginfo_ppc64.c |

Re: [Qemu-devel] [PATCH risu 1/3] ppc64.risu: Add missing byte and dword loads

2018-03-06 Thread Sandipan Das
On 03/06/2018 05:09 PM, Peter Maydell wrote: > On 6 March 2018 at 06:42, Sandipan Das <sandi...@linux.vnet.ibm.com> wrote: >> The patterns for the following instructions are added: >> * Load Byte and Zero (lbz) >> * Load Byte and Zero with Update (lbzu) >> *

[Qemu-devel] [PATCH risu 3/3] risu_reginfo_ppc64.c: Fix register name prefix

2018-03-05 Thread Sandipan Das
Use 'f' instead of 'r' as the prefix when dumping the values of floating-point registers. Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.com> --- risu_reginfo_ppc64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/risu_reginfo_ppc64.c b/risu_reginfo_ppc64.c

[Qemu-devel] [PATCH risu 2/3] ppc64.risu: Fix pattern for load qword

2018-03-05 Thread Sandipan Das
of the registers. This can cause a mismatch as the addresses may vary across the master and the apprentice instances. This is avoided by always adding 8 to the offset used for calculating the ea. Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.com> --- ppc64.risu | 4 ++-- 1 file chan

[Qemu-devel] [PATCH risu 1/3] ppc64.risu: Add missing byte and dword loads

2018-03-05 Thread Sandipan Das
The patterns for the following instructions are added: * Load Byte and Zero (lbz) * Load Byte and Zero with Update (lbzu) * Load Byte and Zero Indexed (lbzx) * Load Byte and Zero with Update Indexed (lbzux) * Load Doubleword (ld) Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.

[Qemu-devel] [PATCH v4] target/ppc: Fix carry flag setting for shift algebraic instructions

2017-10-05 Thread Sandipan Das
Doubleword (srad[.]) * Shift Right Algebraic Doubleword Immediate (sradi[.]) Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.com> --- v2: Add tcg_temp_free() required in gen_sraw() and gen_srad() v3: Remove explicit checking for ISA v3.0 when setting CA32 v4: Set CA32 only when CA is

[Qemu-devel] [PATCH v3] target/ppc: Fix carry flag setting for shift algebraic instructions

2017-10-03 Thread Sandipan Das
Doubleword (srad[.]) * Shift Right Algebraic Doubleword Immediate (sradi[.]) Signed-off-by: Sandipan Das <sandi...@linux.vnet.ibm.com> --- v2: Add tcg_temp_free() required in gen_sraw() and gen_srad() v3: Remove explicit checking for ISA v3.0 when setting CA32 --- target/ppc/int_helper

Re: [Qemu-devel] [PATCH risu] ppc64: Fix patterns for rotate doubleword instructions

2017-05-22 Thread Sandipan Das
On Monday 22 May 2017 12:33 PM, Nikunj A Dadhania wrote: > Sandipan Das <sandipandas1...@gmail.com> writes: > >> The patterns for the following instructions are fixed: >> * Rotate Left Doubleword then Clear Right (rldcr[.]) >> * Rotate Left Doubleword Imme

[Qemu-devel] [PATCH risu] ppc64: Fix patterns for rotate doubleword instructions

2017-05-22 Thread Sandipan Das
The patterns for the following instructions are fixed: * Rotate Left Doubleword then Clear Right (rldcr[.]) * Rotate Left Doubleword Immediate then Clear Right (rldicr[.]) * Rotate Left Doubleword Immediate then Mask Insert (rldimi[.]) Signed-off-by: Sandipan Das <sandipandas1...@gmail.

[Qemu-devel] [PATCH risu v2] ppc64: Fix patterns for rotate doubleword instructions

2017-05-22 Thread Sandipan Das
instructions, the extended opcodes are incorrect and the shift field 'sha' is absent. Also, the shift field 'sh' should be used in place of the register field 'rb'. Signed-off-by: Sandipan Das <sandipandas1...@gmail.com> --- ppc64.risu | 10 +- 1 file changed, 5 insertions(+), 5 del