From 4b6fc98816d23c67ea97c45d3b12cd20de841da6 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 20 Jul 2015 18:05:21 +0000 Subject: [PATCH] cacheflush.c: make use of RVAL_DECODED * cacheflush.c (sys_cacheflush): Update for RVAL_DECODED. --- cacheflush.c | 74 +++++++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 39 deletions(-) diff --git a/cacheflush.c b/cacheflush.c index db7283f2..e4b704c8 100644 --- a/cacheflush.c +++ b/cacheflush.c @@ -22,19 +22,18 @@ static const struct xlat cacheflush_flags[] = { SYS_FUNC(cacheflush) { - if (entering(tcp)) { - /* addr */ - printaddr(tcp->u_arg[0]); - tprints(", "); - /* scope */ - printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???"); - tprints(", "); - /* flags */ - printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???"); - /* len */ - tprintf(", %lu", tcp->u_arg[3]); - } - return 0; + /* addr */ + printaddr(tcp->u_arg[0]); + tprints(", "); + /* scope */ + printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???"); + tprints(", "); + /* flags */ + printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???"); + /* len */ + tprintf(", %lu", tcp->u_arg[3]); + + return RVAL_DECODED; } #endif /* M68K */ @@ -48,15 +47,14 @@ static const struct xlat cacheflush_flags[] = { SYS_FUNC(cacheflush) { - if (entering(tcp)) { - /* start addr */ - printaddr(tcp->u_arg[0]); - /* length */ - tprintf(", %ld, ", tcp->u_arg[1]); - /* flags */ - printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE"); - } - return 0; + /* start addr */ + printaddr(tcp->u_arg[0]); + /* length */ + tprintf(", %ld, ", tcp->u_arg[1]); + /* flags */ + printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE"); + + return RVAL_DECODED; } #endif /* BFIN */ @@ -79,28 +77,26 @@ static const struct xlat cacheflush_flags[] = { SYS_FUNC(cacheflush) { - if (entering(tcp)) { - /* addr */ - printaddr(tcp->u_arg[0]); - /* len */ - tprintf(", %lu, ", tcp->u_arg[1]); - /* flags */ - printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???"); - } - return 0; + /* addr */ + printaddr(tcp->u_arg[0]); + /* len */ + tprintf(", %lu, ", tcp->u_arg[1]); + /* flags */ + printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???"); + + return RVAL_DECODED; } #endif /* SH */ #ifdef NIOS2 SYS_FUNC(cacheflush) { - if (entering(tcp)) { - /* addr */ - printaddr(tcp->u_arg[0]); - /* len */ - tprintf(", %lu, ", tcp->u_arg[3]); - /* scope and flags (cache type) are currently ignored */ - } - return 0; + /* addr */ + printaddr(tcp->u_arg[0]); + /* len */ + tprintf(", %lu, ", tcp->u_arg[3]); + /* scope and flags (cache type) are currently ignored */ + + return RVAL_DECODED; } #endif /* NIOS2 */ -- 2.50.1