[PATCH v2] target/riscv: Support Supm and Sspm as part of Zjpm v1.0

2025-01-13 Thread baturo . alexey
From: Alexey Baturo Rebased against alistair/riscv-to-apply.next [v1]: The Zjpm v1.0 spec states there should be Supm and Sspm extensions that are used in profile specification. Enabling Supm extension enables both Ssnpm and Smnpm, while Sspm enables only Smnpm. Signed-off-by: Alexey Baturo

[PATCH] target/riscv: Support Supm and Sspm as part of Zjpm v1.0

2025-01-11 Thread baturo . alexey
From: Alexey Baturo The Zjpm v1.0 spec states there should be Supm and Sspm extensions that are used in profile specification. Enabling Supm extension enables both Ssnpm and Smnpm, while Sspm enables only Smnpm. Signed-off-by: Alexey Baturo --- target/riscv/cpu.c | 23 +++

[PATCH v15 4/7] target/riscv: Add pointer masking tb flags

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: LIU Zhiwei --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git a

[PATCH v15 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 1 + target/riscv/cpu_helper.c| 19 + target/riscv/internals.h | 54 target/riscv/op

[PATCH v15 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 99588e219e..d9eb2c04c3 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -193,

[PATCH v15 0/7] Pointer Masking update for Zjpm v1.0

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Hi, Rebased against Alistair's riscv-to-apply.next Thanks [v14]: Rebased and addressed Alistair's comments on code style. [v13]: Rebased and addressed Daniel's comments about the return type of the helper. Thanks [v12]: Rebased and addressed Richard's comments about pro

[PATCH v15 1/7] target/riscv: Remove obsolete pointer masking extension code.

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo Acked-

[PATCH v15 5/7] target/riscv: Update address modify functions to take into account pointer masking

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/targe

[PATCH v15 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 33 +++-- t

[PATCH v15 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2025-01-06 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 78 +++ 2 files changed, 83 insertions(+) diff --git a/target/riscv/cpu.

[PATCH v14 5/7] target/riscv: Update address modify functions to take into account pointer masking

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/targe

[PATCH v14 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 78 +++ 2 files changed, 83 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 41

[PATCH v14 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 31 ++- tar

[PATCH v14 4/7] target/riscv: Add pointer masking tb flags

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: LIU Zhiwei --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git a

[PATCH v14 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 1 + target/riscv/cpu_helper.c| 19 + target/riscv/internals.h | 54 target/riscv/op

[PATCH v14 1/7] target/riscv: Remove obsolete pointer masking extension code.

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo Acked-

[PATCH v14 0/7] Pointer Masking update for Zjpm v1.0

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Hi, Rebased and addressed Alistair's comments on code style. Thanks [v13]: Rebased and addressed Daniel's comments about the return type of the helper. Thanks [v12]: Rebased and addressed Richard's comments about proper masking virtualized accesses. Thanks [v11]: As su

[PATCH v14 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 0a00be66f1..144ce822d5 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186,

[PATCH v13 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 73 +++ 2 files changed, 78 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 417ff45544..e7f346ff6b 100644 --- a/targ

[PATCH v13 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 1 + target/riscv/cpu_helper.c| 18 +++ target/riscv/internals.h | 44 target/riscv/op_helper.c | 16 ++--- target/riscv/vector_helper.c | 21

[PATCH v13 0/7] Pointer Masking update for Zjpm v1.0

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Hi, Rebased and addressed Daniel's comments about the return type of the helper. Thanks [v12]: Rebased and addressed Richard's comments about proper masking virtualized accesses. Thanks [v11]: As suggested on the mailing list by Daniel, I'm resubmitting this series and

[PATCH v13 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 31 ++- target/riscv/pmp.c | 14

[PATCH v13 4/7] target/riscv: Add pointer masking tb flags

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: LIU Zhiwei --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git

[PATCH v13 5/7] target/riscv: Update address modify functions to take into account pointer masking

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/targ

[PATCH v13 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 8dea26e214..05184b9a6e 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186

[PATCH v13 1/7] target/riscv: Remove obsolete pointer masking extension code.

2024-12-16 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo Acked

[PATCH v12 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4e80dcd2e6..fd3ea9ce76 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186

[PATCH v12 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 1 + target/riscv/cpu_helper.c| 18 +++ target/riscv/internals.h | 44 target/riscv/op_helper.c | 16 ++--- target/riscv/vector_helper.c | 21

[PATCH v12 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 74 +++ 2 files changed, 79 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 417ff45544..74d7076f5a 100644 --- a/targ

[PATCH v12 4/7] target/riscv: Add pointer masking tb flags

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: LIU Zhiwei --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git

[PATCH v12 5/7] target/riscv: Update address modify functions to take into account pointer masking

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/targ

[PATCH v12 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 31 ++- target/riscv/pmp.c | 14 +++--- target/riscv/pmp.h |

[PATCH v12 0/7] Pointer Masking update for Zjpm v1.0

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Hi, Rebased and addressed Richard's comments about proper masking virtualized accesses. Thanks [v11]: As suggested on the mailing list by Daniel, I'm resubmitting this series and keeping the original versioning number. So that makes this one v11 and previous - v10. Also I

[PATCH v12 1/7] target/riscv: Remove obsolete pointer masking extension code.

2024-12-05 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo Acked

[PATCH v11 5/7] target/riscv: Update address modify functions to take into account pointer masking

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/targ

[PATCH v11 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 74 +++ 2 files changed, 79 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 417ff45544..74d7076f5a 100644 --- a/targ

[PATCH v11 1/7] target/riscv: Remove obsolete pointer masking extension code.

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo Acked

[PATCH v11 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4e80dcd2e6..fd3ea9ce76 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186

[PATCH v11 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 31 ++- target/riscv/pmp.c | 14 +++--- target/riscv/pmp.h |

[PATCH v11 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 2 ++ target/riscv/cpu_helper.c | 19 +++ target/riscv/insn_trans/trans_rvh.c.inc | 11 +++ target/riscv/translate.c| 4 4 files changed, 3

[PATCH v11 4/7] target/riscv: Add pointer masking tb flags

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: LIU Zhiwei --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git

[PATCH v11 0/7] Pointer Masking update for Zjpm v1.0

2024-11-26 Thread baturo . alexey
From: Alexey Baturo Hi, As suggested on the mailing list by Daniel, I'm resubmitting this series and keeping the original versioning number. So that makes this one v11 and previous - v10. Also I applied previously issues reviewed-by tags on some of the patches that were present in v9 series, b

[PATCH v2 0/7] Pointer Masking update for Zjpm v1.0

2024-11-21 Thread baturo . alexey
From: Alexey Baturo Hi, I've rebased this patch series and addressed Richard's and Daniel's comments. Thanks *** BLURB HERE *** [v0]: As Pointer Masking is finally ratified, these patches intend to update the existing code to the final version. These patches have been submitted previously and

[PATCH v2 5/7] target/riscv: Update address modify functions to take into account pointer masking

2024-11-21 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/target/riscv/translate.c b/target/riscv/translate.c index bb92f36ba1

[PATCH v2 4/7] target/riscv: Add pointer masking tb flags

2024-11-20 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 74d7076f5a..11e3a6d647 100644 --- a/targe

[PATCH v2 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-11-20 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 2 ++ target/riscv/cpu_helper.c | 19 +++ target/riscv/insn_trans/trans_rvh.c.inc | 11 +++ target/riscv/translate.c| 4 4 files changed, 3

[PATCH v2 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2024-11-20 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 74 +++ 2 files changed, 79 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 417ff45544..74d7076f5a 100644 --- a/targ

[PATCH v2 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2024-11-20 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 31 ++- target/riscv/pmp.c | 14 +++--- target/riscv/pmp.h |

[PATCH v2 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2024-11-20 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4e80dcd2e6..fd3ea9ce76 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186,11 +186,14 @@ const RISCVIsaExt

[PATCH v2 1/7] target/riscv: Remove obsolete pointer masking extension code.

2024-11-20 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo --- t

[PATCH 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 2 ++ target/riscv/cpu_helper.c | 19 +++ target/riscv/insn_trans/trans_rvh.c.inc | 11 +++ target/riscv/translate.c| 4 4 files changed, 3

[PATCH 5/7] target/riscv: Update address modify functions to take into account pointer masking

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/target/riscv/translate.c b/target/riscv/translate.c index bb92f36ba1

[PATCH 0/7] Pointer Masking update for Zjpm v1.0

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Hi, As Pointer Masking is finally ratified, these patches intend to update the existing code to the final version. These patches have been submitted previously and I tried to address all the suggestions, but I'd suggest to review them from the clean slate and then finally

[PATCH 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 30 ++ target/riscv/pmp.c | 14 +++--- target/riscv/pmp.h | 1

[PATCH 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 4e80dcd2e6..13b2c56a72 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -200,6 +200,9 @@ const RISCVIsaExtDa

[PATCH 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 74 +++ 2 files changed, 79 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 417ff45544..74d7076f5a 100644 --- a/targ

[PATCH 1/7] target/riscv: Remove obsolete pointer masking extension code.

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo --- t

[PATCH 4/7] target/riscv: Add pointer masking tb flags

2024-11-07 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 74d7076f5a..11e3a6d647 100644 --- a/targe