Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
97e98132
Commit
97e98132
authored
Dec 06, 2018
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARCv2: boot log: BPU return stack depth
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
bfeffd15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
arch/arc/include/asm/arcregs.h
arch/arc/include/asm/arcregs.h
+1
-1
arch/arc/kernel/setup.c
arch/arc/kernel/setup.c
+3
-2
No files found.
arch/arc/include/asm/arcregs.h
View file @
97e98132
...
...
@@ -283,7 +283,7 @@ struct cpuinfo_arc_cache {
};
struct
cpuinfo_arc_bpu
{
unsigned
int
ver
,
full
,
num_cache
,
num_pred
;
unsigned
int
ver
,
full
,
num_cache
,
num_pred
,
ret_stk
;
};
struct
cpuinfo_arc_ccm
{
...
...
arch/arc/kernel/setup.c
View file @
97e98132
...
...
@@ -195,6 +195,7 @@ static void read_arc_build_cfg_regs(void)
cpu
->
bpu
.
full
=
bpu
.
ft
;
cpu
->
bpu
.
num_cache
=
256
<<
bpu
.
bce
;
cpu
->
bpu
.
num_pred
=
2048
<<
bpu
.
pte
;
cpu
->
bpu
.
ret_stk
=
4
<<
bpu
.
rse
;
if
(
cpu
->
core
.
family
>=
0x54
)
{
unsigned
int
exec_ctrl
;
...
...
@@ -299,10 +300,10 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len)
if
(
cpu
->
bpu
.
ver
)
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"BPU
\t\t
: %s%s match, cache:%d, Predict Table:%d"
,
"BPU
\t\t
: %s%s match, cache:%d, Predict Table:%d
Return stk: %d
"
,
IS_AVAIL1
(
cpu
->
bpu
.
full
,
"full"
),
IS_AVAIL1
(
!
cpu
->
bpu
.
full
,
"partial"
),
cpu
->
bpu
.
num_cache
,
cpu
->
bpu
.
num_pred
);
cpu
->
bpu
.
num_cache
,
cpu
->
bpu
.
num_pred
,
cpu
->
bpu
.
ret_stk
);
if
(
is_isa_arcv2
())
{
struct
bcr_lpb
lpb
;
...
...
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