From: David Schleef Date: Sun, 20 Sep 2009 05:33:31 +0000 (-0700) Subject: arm: add orc_arm_flush_cache() X-Git-Tag: merge-base~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89a2966432349d3b4a514197c278a5f7ef7bf0ce;p=platform%2Fupstream%2Forc.git arm: add orc_arm_flush_cache() --- diff --git a/orc/orcarm.c b/orc/orcarm.c index e9dccad..7ef3494 100644 --- 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 --- 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 */ /* {}{s} {}, , #imm */