projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50ffeb4
)
arm: add orc_arm_flush_cache()
author
David Schleef
<ds@schleef.org>
Sun, 20 Sep 2009 05:33:31 +0000
(22:33 -0700)
committer
David Schleef
<ds@schleef.org>
Sun, 20 Sep 2009 05:38:59 +0000
(22:38 -0700)
orc/orcarm.c
patch
|
blob
|
history
orc/orcarm.h
patch
|
blob
|
history
diff --git
a/orc/orcarm.c
b/orc/orcarm.c
index
e9dccad
..
7ef3494
100644
(file)
--- a/
orc/orcarm.c
+++ b/
orc/orcarm.c
@@
-504,3
+504,11
@@
orc_arm_emit_rv (OrcCompiler *p, int op, OrcArmCond cond,
orc_arm_emit (p, code);
}
+void
+orc_arm_flush_cache (OrcCompiler *compiler)
+{
+#ifdef HAVE_ARM
+ __clear_cache (compiler->program->code, compiler->codeptr);
+#endif
+}
+
diff --git
a/orc/orcarm.h
b/orc/orcarm.h
index
a95ade5
..
c0225f1
100644
(file)
--- a/
orc/orcarm.h
+++ b/
orc/orcarm.h
@@
-99,6
+99,8
@@
void orc_arm_emit_sat (OrcCompiler *p, int op, OrcArmCond cond,
void orc_arm_emit_rv (OrcCompiler *p, int op, OrcArmCond cond,
int Rd, int Rm);
+void orc_arm_flush_cache (OrcCompiler *compiler);
+
/* ALL cpus */
/* data procesing instructions */
/* <op>{<cond>}{s} {<Rd>}, <Rn>, #imm */