From d73b48840115f0adc97d6a9e6fe2aeb88fcbfbdd Mon Sep 17 00:00:00 2001 From: Edmund Grimley Evans Date: Sun, 8 Mar 2015 00:10:44 +0000 Subject: arm64: Implement __clear_cache. __clear_cache is defined in lib-arm64.c with a single call to __arm64_clear_cache, which is the real built-in function and is turned into inline assembler by gen_clear_cache in arm64-gen.c --- tccgen.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tccgen.c') diff --git a/tccgen.c b/tccgen.c index adc5005..52541e2 100644 --- a/tccgen.c +++ b/tccgen.c @@ -3979,6 +3979,18 @@ ST_FUNC void unary(void) vtop->type = type; break; } + case TOK___arm64_clear_cache: { + next(); + skip('('); + expr_eq(); + skip(','); + expr_eq(); + skip(')'); + gen_clear_cache(); + vpushi(0); + vtop->type.t = VT_VOID; + break; + } #endif case TOK_INC: -- cgit v1.3.1