target-mips: fix 34Kf configuration for DSP ASE
PATCH v2 1/1 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
---
changes from v1:
make status.MX writeable
target-mips/translate_init.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
target-mips/translate_init.c +3 -4
@@ -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_Status_rw_bitmask = 0x3778FF1F, .CP0_TCStatus_rw_bitmask = (0 << CP0TCSt_TCU3) | (0 << CP0TCSt_TCU2) | (1 << CP0TCSt_TCU1) | (1 << CP0TCSt_TCU0) | (0 << CP0TCSt_TMX) | (1 << CP0TCSt_DT) |
Signature · 1 line
1.7.4
Aurelien Jarno
AppliedQuoted 25 lines · Yongbok Kim
34Kf core does support DSP ASE.
CP0_Config3configuration for 34Kf and description are wrong.Please refer to MIPS32(R) 34Kf(TM) Processor Core Datasheet
Signed-off-by Yongbok Kim <[email protected]>---
changes from v1:
make status.MX writeabletarget-mips/translate_init.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)target-mips/translate_init.c +2
-1@@ -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,
target-mips/translate_init.c static const mips_def_t mips_defs[] = · line 286
Quoted 10 lines
target-mips/translate_init.c +1
-3.CP0_LLAddr_shift = 0, .SYNCI_Step = 32, .CCRes = 2, -/* No DSP implemented. */ - .CP0_Status_rw_bitmask = 0x3678FF1F, -/* No DSP implemented. */ + .CP0_Status_rw_bitmask = 0x3778FF1F, .CP0_TCStatus_rw_bitmask = (0 << CP0TCSt_TCU3) | (0 << CP0TCSt_TCU2) | (1 << CP0TCSt_TCU1) | (1 << CP0TCSt_TCU0) | (0 << CP0TCSt_TMX) | (1 << CP0TCSt_DT) |
Thanks, applied.
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
Quoted 27 lines · Aurelien Jarno
Quoted 27 lines
34Kf core does support DSP ASE.
CP0_Config3configuration for 34Kf and description are wrong.Please refer to MIPS32(R) 34Kf(TM) Processor Core Datasheet
Signed-off-by Yongbok Kim <[email protected]>---
changes from v1:
make status.MX writeabletarget-mips/translate_init.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)target-mips/translate_init.c +2
-1@@ -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,
Quoted 8 lines
target-mips/translate_init.c static const mips_def_t mips_defs[] = · line 286
Quoted 8 lines
target-mips/translate_init.c +1
-3.CCRes = 2, -/* No DSP implemented. */ - .CP0_Status_rw_bitmask = 0x3678FF1F, -/* No DSP implemented. */ + .CP0_Status_rw_bitmask = 0x3778FF1F, .CP0_TCStatus_rw_bitmask = (0 << CP0TCSt_TCU3) | (0 << CP0TCSt_TCU2) | (1 << CP0TCSt_TCU1) | (1 << CP0TCSt_TCU0) | (0 << CP0TCSt_TMX) | (1 << CP0TCSt_DT) |
And likewise CP0.TCStatus.TMX has to be set (to match CP0.Status.MX):
(1 << CP0TCSt_TMX) | (1 << CP0TCSt_DT) |
Quoted 1 line
Thanks, applied.
Maciej