From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrKND-0006yg-Hy for qemu-devel@nongnu.org; Sat, 28 Jan 2012 21:20:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrKNB-0001UH-CL for qemu-devel@nongnu.org; Sat, 28 Jan 2012 21:20:06 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:55149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrKNB-0001QV-4W for qemu-devel@nongnu.org; Sat, 28 Jan 2012 21:20:05 -0500 Received: by mail-bk0-f45.google.com with SMTP id zu17so2552595bkb.4 for ; Sat, 28 Jan 2012 18:20:04 -0800 (PST) From: Max Filippov Date: Sun, 29 Jan 2012 06:19:30 +0400 Message-Id: <1327803571-30553-9-git-send-email-jcmvbkbc@gmail.com> In-Reply-To: <1327803571-30553-1-git-send-email-jcmvbkbc@gmail.com> References: <1327803571-30553-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [RFC 8/9] target-xtensa: add DEBUG_SECTION to overlay tool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jcmvbkbc@gmail.com Fill debug configuration from overlay definitions in the DEBUG_SECTION. Add DEBUG_SECTION to DC232B and FSF cores. Signed-off-by: Max Filippov --- target-xtensa/core-dc232b.c | 1 + target-xtensa/core-fsf.c | 1 + target-xtensa/overlay_tool.h | 5 +++++ 3 files changed, 7 insertions(+), 0 deletions(-) diff --git a/target-xtensa/core-dc232b.c b/target-xtensa/core-dc232b.c index 4d9bd55..b723c4c 100644 --- a/target-xtensa/core-dc232b.c +++ b/target-xtensa/core-dc232b.c @@ -22,6 +22,7 @@ static const XtensaConfig dc232b = { EXCEPTIONS_SECTION, INTERRUPTS_SECTION, TLB_SECTION, + DEBUG_SECTION, .clock_freq_khz = 10000, }; diff --git a/target-xtensa/core-fsf.c b/target-xtensa/core-fsf.c index 7650462..88de4dd 100644 --- a/target-xtensa/core-fsf.c +++ b/target-xtensa/core-fsf.c @@ -16,6 +16,7 @@ static const XtensaConfig fsf = { EXCEPTIONS_SECTION, INTERRUPTS_SECTION, TLB_SECTION, + DEBUG_SECTION, .clock_freq_khz = 10000, }; diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h index df19cc9..cbb4aa6 100644 --- a/target-xtensa/overlay_tool.h +++ b/target-xtensa/overlay_tool.h @@ -114,6 +114,7 @@ [EXC_KERNEL] = XCHAL_KERNEL_VECTOR_VADDR, \ [EXC_USER] = XCHAL_USER_VECTOR_VADDR, \ [EXC_DOUBLE] = XCHAL_DOUBLEEXC_VECTOR_VADDR, \ + [EXC_DEBUG] = XCHAL_DEBUG_VECTOR_VADDR, \ } #define INTERRUPT_VECTORS { \ @@ -288,6 +289,10 @@ #define REGISTER_CORE(core) #endif +#define DEBUG_SECTION \ + .debug_level = XCHAL_DEBUGLEVEL, \ + .nibreak = XCHAL_NUM_IBREAK, \ + .ndbreak = XCHAL_NUM_DBREAK #if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI + 1 <= 2 #define XCHAL_INTLEVEL2_VECTOR_VADDR 0 -- 1.7.7.6