Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
e0f8b6a0
Commit
e0f8b6a0
authored
Jan 15, 2013
by
Sofiane Naci
Committed by
Sofiane Naci
Jan 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AARCH64] Fix __clear_cache.
From-SVN: r195203
parent
93aea671
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
libgcc/ChangeLog
+5
-0
libgcc/config/aarch64/sync-cache.c
+8
-2
No files found.
libgcc/ChangeLog
View file @
e0f8b6a0
2013-01-15 Sofiane Naci <sofiane.naci@arm.com>
* config/aarch64/sync-cache.c (__aarch64_sync_cache_range): Update
loop start address for cache clearing.
2013-01-14 Georg-Johann Lay <avr@gjlay.de>
* config/avr/lib1funcs.S: Remove trailing blanks.
...
...
libgcc/config/aarch64/sync-cache.c
View file @
e0f8b6a0
...
...
@@ -39,7 +39,10 @@ __aarch64_sync_cache_range (const void *base, const void *end)
instruction cache fetches the updated data. 'end' is exclusive,
as per the GNU definition of __clear_cache. */
for
(
address
=
base
;
address
<
(
const
char
*
)
end
;
address
+=
dcache_lsize
)
/* Make the start address of the loop cache aligned. */
address
=
(
const
char
*
)
((
unsigned
long
)
base
&
~
(
dcache_lsize
-
1
));
for
(
address
;
address
<
(
const
char
*
)
end
;
address
+=
dcache_lsize
)
asm
volatile
(
"dc
\t
cvau, %0"
:
:
"r"
(
address
)
...
...
@@ -47,7 +50,10 @@ __aarch64_sync_cache_range (const void *base, const void *end)
asm
volatile
(
"dsb
\t
ish"
:
:
:
"memory"
);
for
(
address
=
base
;
address
<
(
const
char
*
)
end
;
address
+=
icache_lsize
)
/* Make the start address of the loop cache aligned. */
address
=
(
const
char
*
)
((
unsigned
long
)
base
&
~
(
icache_lsize
-
1
));
for
(
address
;
address
<
(
const
char
*
)
end
;
address
+=
icache_lsize
)
asm
volatile
(
"ic
\t
ivau, %0"
:
:
"r"
(
address
)
...
...
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