qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-mips: fix 34Kf configuration for DSP ASE
@ 2013-08-01 10:35 Yongbok Kim
  2013-08-01 17:37 ` Eric Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Yongbok Kim @ 2013-08-01 10:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: yongbok.kim, cristian.cuna, leon.alrae, aurelien

34Kf core does support DSP ASE.
CP0_Config3 configuration for 34Kf and description are wrong.

Please refer to MIPS32(R) 34Kf(TM) Processor Core Datasheet

Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
---
 target-mips/translate_init.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c
index 7cf238f..4cd9ed5 100644
--- a/target-mips/translate_init.c
+++ b/target-mips/translate_init.c
@@ -274,14 +274,13 @@ static const mips_def_t mips_defs[] =
                        (0 << CP0C1_DS) | (3 << CP0C1_DL) | (1 << CP0C1_DA) |
                        (1 << CP0C1_CA),
         .CP0_Config2 = MIPS_CONFIG2,
-        .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_VInt) | (1 << CP0C3_MT),
+        .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_VInt) | (1 << CP0C3_MT) |
+                       (1 << CP0C3_DSPP),
         .CP0_LLAddr_rw_bitmask = 0,
         .CP0_LLAddr_shift = 0,
         .SYNCI_Step = 32,
         .CCRes = 2,
-        /* No DSP implemented. */
         .CP0_Status_rw_bitmask = 0x3678FF1F,
-        /* No DSP implemented. */
         .CP0_TCStatus_rw_bitmask = (0 << CP0TCSt_TCU3) | (0 << CP0TCSt_TCU2) |
                     (1 << CP0TCSt_TCU1) | (1 << CP0TCSt_TCU0) |
                     (0 << CP0TCSt_TMX) | (1 << CP0TCSt_DT) |
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] target-mips: fix 34Kf configuration for DSP ASE
  2013-08-01 10:35 [Qemu-devel] [PATCH] target-mips: fix 34Kf configuration for DSP ASE Yongbok Kim
@ 2013-08-01 17:37 ` Eric Johnson
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Johnson @ 2013-08-01 17:37 UTC (permalink / raw)
  To: Yongbok Kim, qemu-devel@nongnu.org
  Cc: Cristian Cuna, Leon Alrae, aurelien@aurel32.net

Hi Yongbok,

You need to make Status.MX writeable as well.

-         .CP0_Status_rw_bitmask = 0x3678FF1F,
+         .CP0_Status_rw_bitmask = 0x3778FF1F,

-Eric

> -----Original Message-----
> From: qemu-devel-bounces+eric.johnson=imgtec.com@nongnu.org [mailto:qemu-devel-
> bounces+eric.johnson=imgtec.com@nongnu.org] On Behalf Of Yongbok Kim
> Sent: Thursday, August 01, 2013 3:35 AM
> To: qemu-devel@nongnu.org
> Cc: Yongbok Kim; Cristian Cuna; Leon Alrae; aurelien@aurel32.net
> Subject: [Qemu-devel] [PATCH] target-mips: fix 34Kf configuration for DSP ASE
> 
> 34Kf core does support DSP ASE.
> CP0_Config3 configuration for 34Kf and description are wrong.
> 
> Please refer to MIPS32(R) 34Kf(TM) Processor Core Datasheet
> 
> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
> ---
>  target-mips/translate_init.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c
> index 7cf238f..4cd9ed5 100644
> --- a/target-mips/translate_init.c
> +++ b/target-mips/translate_init.c
> @@ -274,14 +274,13 @@ static const mips_def_t mips_defs[] =
>                         (0 << CP0C1_DS) | (3 << CP0C1_DL) | (1 << CP0C1_DA) |
>                         (1 << CP0C1_CA),
>          .CP0_Config2 = MIPS_CONFIG2,
> -        .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_VInt) | (1 << CP0C3_MT),
> +        .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_VInt) | (1 << CP0C3_MT) |
> +                       (1 << CP0C3_DSPP),
>          .CP0_LLAddr_rw_bitmask = 0,
>          .CP0_LLAddr_shift = 0,
>          .SYNCI_Step = 32,
>          .CCRes = 2,
> -        /* No DSP implemented. */
>          .CP0_Status_rw_bitmask = 0x3678FF1F,
> -        /* No DSP implemented. */
>          .CP0_TCStatus_rw_bitmask = (0 << CP0TCSt_TCU3) | (0 << CP0TCSt_TCU2) |
>                      (1 << CP0TCSt_TCU1) | (1 << CP0TCSt_TCU0) |
>                      (0 << CP0TCSt_TMX) | (1 << CP0TCSt_DT) |
> --
> 1.7.4
> 
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-01 20:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 10:35 [Qemu-devel] [PATCH] target-mips: fix 34Kf configuration for DSP ASE Yongbok Kim
2013-08-01 17:37 ` Eric Johnson

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).