Received: from eggs.gnu.org ([2001:4830:134:3::10]:37409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag8zb-000423-Q6 for qemu-devel@nongnu.org; Wed, 16 Mar 2016 06:47:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag8zW-0002Lv-5m for qemu-devel@nongnu.org; Wed, 16 Mar 2016 06:47:55 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:37059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag8zV-0002LS-V4 for qemu-devel@nongnu.org; Wed, 16 Mar 2016 06:47:50 -0400 Received: by mail-wm0-x22a.google.com with SMTP id p65so66057128wmp.0 for ; Wed, 16 Mar 2016 03:47:49 -0700 (PDT) Received: from 640k.lan (94-39-161-17.adsl-ull.clienti.tiscali.it. [94.39.161.17]) by smtp.gmail.com with ESMTPSA id wr2sm2418094wjc.49.2016.03.16.03.47.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Mar 2016 03:47:48 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 16 Mar 2016 11:46:53 +0100 Message-Id: <1458125219-131698-44-git-send-email-pbonzini@redhat.com> In-Reply-To: <1458125219-131698-1-git-send-email-pbonzini@redhat.com> References: <1458125219-131698-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 43/49] arm: move arm_log_exception into .c file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Avoid need for qemu/log.h inclusion. Signed-off-by: Paolo Bonzini --- target-arm/helper.c | 14 ++++++++++++++ target-arm/internals.h | 15 +-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index eaded41..f71a78f 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -5810,6 +5810,20 @@ static void do_v7m_exception_exit(CPUARMState *env) pointer. */ } +void arm_log_exception(int idx) +{ + if (qemu_loglevel_mask(CPU_LOG_INT)) { + const char *exc = NULL; + + if (idx >= 0 && idx < ARRAY_SIZE(excnames)) { + exc = excnames[idx]; + } + if (!exc) { + exc = "unknown"; + } + qemu_log_mask(CPU_LOG_INT, "Taking exception %d [%s]\n", idx, exc); + } +} void arm_v7m_cpu_do_interrupt(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); diff --git a/target-arm/internals.h b/target-arm/internals.h index 2e70272..5c7d146 100644 --- a/target-arm/internals.h +++ b/target-arm/internals.h @@ -72,20 +72,7 @@ static const char * const excnames[] = { [EXCP_SEMIHOST] = "Semihosting call", }; -static inline void arm_log_exception(int idx) -{ - if (qemu_loglevel_mask(CPU_LOG_INT)) { - const char *exc = NULL; - - if (idx >= 0 && idx < ARRAY_SIZE(excnames)) { - exc = excnames[idx]; - } - if (!exc) { - exc = "unknown"; - } - qemu_log_mask(CPU_LOG_INT, "Taking exception %d [%s]\n", idx, exc); - } -} +void arm_log_exception(int idx); /* Scale factor for generic timers, ie number of ns per tick. * This gives a 62.5MHz timer. -- 1.8.3.1