Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e7958bb9
Commit
e7958bb9
authored
Dec 08, 2005
by
Ralf Baechle
Committed by
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: Rename MIPS_CPU_ISA_M{32,64} -> MIPS_CPU_ISA_M{32,64}R1.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
571e0bed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
19 deletions
+16
-19
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/cpu-probe.c
+6
-6
arch/mips/kernel/time.c
arch/mips/kernel/time.c
+1
-1
arch/mips/mm/c-r4k.c
arch/mips/mm/c-r4k.c
+2
-2
include/asm-mips/cpu.h
include/asm-mips/cpu.h
+7
-10
No files found.
arch/mips/kernel/cpu-probe.c
View file @
e7958bb9
...
@@ -447,10 +447,10 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c)
...
@@ -447,10 +447,10 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c)
isa
=
(
config0
&
MIPS_CONF_AT
)
>>
13
;
isa
=
(
config0
&
MIPS_CONF_AT
)
>>
13
;
switch
(
isa
)
{
switch
(
isa
)
{
case
0
:
case
0
:
c
->
isa_level
=
MIPS_CPU_ISA_M32
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
R1
;
break
;
break
;
case
2
:
case
2
:
c
->
isa_level
=
MIPS_CPU_ISA_M64
;
c
->
isa_level
=
MIPS_CPU_ISA_M64
R1
;
break
;
break
;
default:
default:
panic
(
"Unsupported ISA type, cp0.config0.at: %d."
,
isa
);
panic
(
"Unsupported ISA type, cp0.config0.at: %d."
,
isa
);
...
@@ -568,7 +568,7 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
...
@@ -568,7 +568,7 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
break
;
break
;
case
PRID_IMP_34K
:
case
PRID_IMP_34K
:
c
->
cputype
=
CPU_34K
;
c
->
cputype
=
CPU_34K
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
R1
;
break
;
break
;
}
}
}
}
...
@@ -647,7 +647,7 @@ static inline void cpu_probe_philips(struct cpuinfo_mips *c)
...
@@ -647,7 +647,7 @@ static inline void cpu_probe_philips(struct cpuinfo_mips *c)
switch
(
c
->
processor_id
&
0xff00
)
{
switch
(
c
->
processor_id
&
0xff00
)
{
case
PRID_IMP_PR4450
:
case
PRID_IMP_PR4450
:
c
->
cputype
=
CPU_PR4450
;
c
->
cputype
=
CPU_PR4450
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
R1
;
break
;
break
;
default:
default:
panic
(
"Unknown Philips Core!"
);
/* REVISIT: die? */
panic
(
"Unknown Philips Core!"
);
/* REVISIT: die? */
...
@@ -690,8 +690,8 @@ __init void cpu_probe(void)
...
@@ -690,8 +690,8 @@ __init void cpu_probe(void)
if
(
c
->
options
&
MIPS_CPU_FPU
)
{
if
(
c
->
options
&
MIPS_CPU_FPU
)
{
c
->
fpu_id
=
cpu_get_fpu_id
();
c
->
fpu_id
=
cpu_get_fpu_id
();
if
(
c
->
isa_level
==
MIPS_CPU_ISA_M32
||
if
(
c
->
isa_level
==
MIPS_CPU_ISA_M32
R1
||
c
->
isa_level
==
MIPS_CPU_ISA_M64
)
{
c
->
isa_level
==
MIPS_CPU_ISA_M64
R1
)
{
if
(
c
->
fpu_id
&
MIPS_FPIR_3D
)
if
(
c
->
fpu_id
&
MIPS_FPIR_3D
)
c
->
ases
|=
MIPS_ASE_MIPS3D
;
c
->
ases
|=
MIPS_ASE_MIPS3D
;
}
}
...
...
arch/mips/kernel/time.c
View file @
e7958bb9
...
@@ -628,7 +628,7 @@ void __init time_init(void)
...
@@ -628,7 +628,7 @@ void __init time_init(void)
mips_hpt_init
=
c0_hpt_init
;
mips_hpt_init
=
c0_hpt_init
;
}
}
if
((
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_M32
)
||
if
((
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_M32
R1
)
||
(
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_I
)
||
(
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_I
)
||
(
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_II
))
(
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_II
))
/*
/*
...
...
arch/mips/mm/c-r4k.c
View file @
e7958bb9
...
@@ -1183,8 +1183,8 @@ static void __init setup_scache(void)
...
@@ -1183,8 +1183,8 @@ static void __init setup_scache(void)
if
(
!
sc_present
)
if
(
!
sc_present
)
return
;
return
;
if
((
c
->
isa_level
==
MIPS_CPU_ISA_M32
||
if
((
c
->
isa_level
==
MIPS_CPU_ISA_M32
R1
||
c
->
isa_level
==
MIPS_CPU_ISA_M64
)
&&
c
->
isa_level
==
MIPS_CPU_ISA_M64
R1
)
&&
!
(
c
->
scache
.
flags
&
MIPS_CACHE_NOT_PRESENT
))
!
(
c
->
scache
.
flags
&
MIPS_CACHE_NOT_PRESENT
))
panic
(
"Dunno how to handle MIPS32 / MIPS64 second level cache"
);
panic
(
"Dunno how to handle MIPS32 / MIPS64 second level cache"
);
...
...
include/asm-mips/cpu.h
View file @
e7958bb9
...
@@ -202,18 +202,15 @@
...
@@ -202,18 +202,15 @@
* ISA Level encodings
* ISA Level encodings
*
*
*/
*/
#define MIPS_CPU_ISA_64BIT 0x00008000
#define MIPS_CPU_ISA_I 0x00000001
#define MIPS_CPU_ISA_I 0x00000001
#define MIPS_CPU_ISA_II 0x00000002
#define MIPS_CPU_ISA_II 0x00000002
#define MIPS_CPU_ISA_III 0x00008003
#define MIPS_CPU_ISA_III (0x00000003 | MIPS_CPU_ISA_64BIT)
#define MIPS_CPU_ISA_IV 0x00008004
#define MIPS_CPU_ISA_IV (0x00000004 | MIPS_CPU_ISA_64BIT)
#define MIPS_CPU_ISA_V 0x00008005
#define MIPS_CPU_ISA_V (0x00000005 | MIPS_CPU_ISA_64BIT)
#define MIPS_CPU_ISA_M32 0x00000020
#define MIPS_CPU_ISA_M32R1 0x00000020
#define MIPS_CPU_ISA_M64 0x00008040
#define MIPS_CPU_ISA_M64R1 (0x00000040 | MIPS_CPU_ISA_64BIT)
/*
* Bit 15 encodes if an ISA level supports 64-bit operations.
*/
#define MIPS_CPU_ISA_64BIT 0x00008000
/*
/*
* CPU Option encodings
* CPU Option encodings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment