* [PATCH] target/mips: enable GINVx support for I6400 and I6500
@ 2023-06-30 7:28 Marcin Nowakowski
2023-07-10 10:42 ` Philippe Mathieu-Daudé
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Marcin Nowakowski @ 2023-06-30 7:28 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, Aurelien Jarno, Jiaxun Yang,
Aleksandar Rikalo, open list:All patches CC here
GINVI and GINVT operations are supported on MIPS I6400 and I6500 cores,
so indicate that properly in CP0.Config5 register bits [16:15].
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@fungible.com>
---
target/mips/cpu-defs.c.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/mips/cpu-defs.c.inc b/target/mips/cpu-defs.c.inc
index d45f245a67..da122e72d7 100644
--- a/target/mips/cpu-defs.c.inc
+++ b/target/mips/cpu-defs.c.inc
@@ -709,7 +709,7 @@ const mips_def_t mips_defs[] =
.CP0_Config4 = MIPS_CONFIG4 | (1U << CP0C4_M) | (3 << CP0C4_IE) |
(1 << CP0C4_AE) | (0xfc << CP0C4_KScrExist),
.CP0_Config5 = MIPS_CONFIG5 | (1 << CP0C5_XNP) | (1 << CP0C5_VP) |
- (1 << CP0C5_LLB) | (1 << CP0C5_MRP),
+ (1 << CP0C5_LLB) | (1 << CP0C5_MRP) | (3 << CP0C5_GI),
.CP0_Config5_rw_bitmask = (1 << CP0C5_MSAEn) | (1 << CP0C5_SBRI) |
(1 << CP0C5_FRE) | (1 << CP0C5_UFE),
.CP0_LLAddr_rw_bitmask = 0,
@@ -749,7 +749,7 @@ const mips_def_t mips_defs[] =
.CP0_Config4 = MIPS_CONFIG4 | (1U << CP0C4_M) | (3 << CP0C4_IE) |
(1 << CP0C4_AE) | (0xfc << CP0C4_KScrExist),
.CP0_Config5 = MIPS_CONFIG5 | (1 << CP0C5_XNP) | (1 << CP0C5_VP) |
- (1 << CP0C5_LLB) | (1 << CP0C5_MRP),
+ (1 << CP0C5_LLB) | (1 << CP0C5_MRP) | (3 << CP0C5_GI),
.CP0_Config5_rw_bitmask = (1 << CP0C5_MSAEn) | (1 << CP0C5_SBRI) |
(1 << CP0C5_FRE) | (1 << CP0C5_UFE),
.CP0_LLAddr_rw_bitmask = 0,
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] target/mips: enable GINVx support for I6400 and I6500
2023-06-30 7:28 [PATCH] target/mips: enable GINVx support for I6400 and I6500 Marcin Nowakowski
@ 2023-07-10 10:42 ` Philippe Mathieu-Daudé
2023-07-10 12:58 ` Jiaxun Yang
2023-07-10 19:21 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-07-10 10:42 UTC (permalink / raw)
To: Marcin Nowakowski, Aurelien Jarno, Jiaxun Yang, Aleksandar Rikalo,
open list:All patches CC here
On 30/6/23 09:28, Marcin Nowakowski wrote:
> GINVI and GINVT operations are supported on MIPS I6400 and I6500 cores,
> so indicate that properly in CP0.Config5 register bits [16:15].
>
> Signed-off-by: Marcin Nowakowski <marcin.nowakowski@fungible.com>
> ---
> target/mips/cpu-defs.c.inc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] target/mips: enable GINVx support for I6400 and I6500
2023-06-30 7:28 [PATCH] target/mips: enable GINVx support for I6400 and I6500 Marcin Nowakowski
2023-07-10 10:42 ` Philippe Mathieu-Daudé
@ 2023-07-10 12:58 ` Jiaxun Yang
2023-07-10 14:59 ` Philippe Mathieu-Daudé
2023-07-10 19:21 ` Philippe Mathieu-Daudé
2 siblings, 1 reply; 5+ messages in thread
From: Jiaxun Yang @ 2023-07-10 12:58 UTC (permalink / raw)
To: Marcin Nowakowski, Philippe Mathieu-Daudé, Aurelien Jarno,
Aleksandar Rikalo, open list:All patches CC here
在 2023/6/30 15:28, Marcin Nowakowski 写道:
> GINVI and GINVT operations are supported on MIPS I6400 and I6500 cores,
> so indicate that properly in CP0.Config5 register bits [16:15].
>
> Signed-off-by: Marcin Nowakowski <marcin.nowakowski@fungible.com>
VZ is unimplemented in TCG so perhaps we should leave them as not supported?
Thanks
- Jiaxun
> ---
> target/mips/cpu-defs.c.inc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/target/mips/cpu-defs.c.inc b/target/mips/cpu-defs.c.inc
> index d45f245a67..da122e72d7 100644
> --- a/target/mips/cpu-defs.c.inc
> +++ b/target/mips/cpu-defs.c.inc
> @@ -709,7 +709,7 @@ const mips_def_t mips_defs[] =
> .CP0_Config4 = MIPS_CONFIG4 | (1U << CP0C4_M) | (3 << CP0C4_IE) |
> (1 << CP0C4_AE) | (0xfc << CP0C4_KScrExist),
> .CP0_Config5 = MIPS_CONFIG5 | (1 << CP0C5_XNP) | (1 << CP0C5_VP) |
> - (1 << CP0C5_LLB) | (1 << CP0C5_MRP),
> + (1 << CP0C5_LLB) | (1 << CP0C5_MRP) | (3 << CP0C5_GI),
> .CP0_Config5_rw_bitmask = (1 << CP0C5_MSAEn) | (1 << CP0C5_SBRI) |
> (1 << CP0C5_FRE) | (1 << CP0C5_UFE),
> .CP0_LLAddr_rw_bitmask = 0,
> @@ -749,7 +749,7 @@ const mips_def_t mips_defs[] =
> .CP0_Config4 = MIPS_CONFIG4 | (1U << CP0C4_M) | (3 << CP0C4_IE) |
> (1 << CP0C4_AE) | (0xfc << CP0C4_KScrExist),
> .CP0_Config5 = MIPS_CONFIG5 | (1 << CP0C5_XNP) | (1 << CP0C5_VP) |
> - (1 << CP0C5_LLB) | (1 << CP0C5_MRP),
> + (1 << CP0C5_LLB) | (1 << CP0C5_MRP) | (3 << CP0C5_GI),
> .CP0_Config5_rw_bitmask = (1 << CP0C5_MSAEn) | (1 << CP0C5_SBRI) |
> (1 << CP0C5_FRE) | (1 << CP0C5_UFE),
> .CP0_LLAddr_rw_bitmask = 0,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] target/mips: enable GINVx support for I6400 and I6500
2023-07-10 12:58 ` Jiaxun Yang
@ 2023-07-10 14:59 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-07-10 14:59 UTC (permalink / raw)
To: Jiaxun Yang, Marcin Nowakowski, Aurelien Jarno, Aleksandar Rikalo,
open list:All patches CC here
On 10/7/23 14:58, Jiaxun Yang wrote:
>
>
> 在 2023/6/30 15:28, Marcin Nowakowski 写道:
>> GINVI and GINVT operations are supported on MIPS I6400 and I6500 cores,
>> so indicate that properly in CP0.Config5 register bits [16:15].
>>
>> Signed-off-by: Marcin Nowakowski <marcin.nowakowski@fungible.com>
>
> VZ is unimplemented in TCG so perhaps we should leave them as not
> supported?
GINVI and GINVT instr were implemented in commit 99029be1c2
("target/mips: Add implementation of GINVT instruction").
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] target/mips: enable GINVx support for I6400 and I6500
2023-06-30 7:28 [PATCH] target/mips: enable GINVx support for I6400 and I6500 Marcin Nowakowski
2023-07-10 10:42 ` Philippe Mathieu-Daudé
2023-07-10 12:58 ` Jiaxun Yang
@ 2023-07-10 19:21 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-07-10 19:21 UTC (permalink / raw)
To: Marcin Nowakowski, Aurelien Jarno, Jiaxun Yang, Aleksandar Rikalo,
open list:All patches CC here
On 30/6/23 09:28, Marcin Nowakowski wrote:
> GINVI and GINVT operations are supported on MIPS I6400 and I6500 cores,
> so indicate that properly in CP0.Config5 register bits [16:15].
>
> Signed-off-by: Marcin Nowakowski <marcin.nowakowski@fungible.com>
> ---
> target/mips/cpu-defs.c.inc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, queued to mips-next.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-10 19:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30 7:28 [PATCH] target/mips: enable GINVx support for I6400 and I6500 Marcin Nowakowski
2023-07-10 10:42 ` Philippe Mathieu-Daudé
2023-07-10 12:58 ` Jiaxun Yang
2023-07-10 14:59 ` Philippe Mathieu-Daudé
2023-07-10 19:21 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).