From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL0Av-0006tc-Bs for qemu-devel@nongnu.org; Mon, 31 Oct 2011 18:17:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RL0Au-0004w3-1E for qemu-devel@nongnu.org; Mon, 31 Oct 2011 18:17:49 -0400 Received: from [188.134.19.124] (port=52710 helo=octofox.metropolis) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL0At-0004uS-Mo for qemu-devel@nongnu.org; Mon, 31 Oct 2011 18:17:47 -0400 From: Max Filippov Date: Tue, 1 Nov 2011 02:17:28 +0400 Message-Id: <1320099455-17326-4-git-send-email-jcmvbkbc@gmail.com> In-Reply-To: <1320099455-17326-1-git-send-email-jcmvbkbc@gmail.com> References: <1320099455-17326-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH 2/7] target-xtensa: handle cache options in the overlay tool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , jcmvbkbc@gmail.com, qemu-devel@nongnu.org Cache options must be enabled for the cores that have cache to avoid illegal instruction exceptions. Signed-off-by: Max Filippov --- target-xtensa/overlay_tool.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h index 060e8e5..9cef27d 100644 --- a/target-xtensa/overlay_tool.h +++ b/target-xtensa/overlay_tool.h @@ -71,6 +71,12 @@ XTENSA_OPTION_HIGH_PRIORITY_INTERRUPT) | \ XCHAL_OPTION(XCHAL_HAVE_CCOUNT, XTENSA_OPTION_TIMER_INTERRUPT) | \ /* Local memory, TODO */ \ + XCHAL_OPTION(XCHAL_ICACHE_WAYS, XTENSA_OPTION_ICACHE) | \ + XCHAL_OPTION(XCHAL_ICACHE_LINE_LOCKABLE, \ + XTENSA_OPTION_ICACHE_INDEX_LOCK) | \ + XCHAL_OPTION(XCHAL_DCACHE_WAYS, XTENSA_OPTION_DCACHE) | \ + XCHAL_OPTION(XCHAL_DCACHE_LINE_LOCKABLE, \ + XTENSA_OPTION_DCACHE_INDEX_LOCK) | \ XCHAL_OPTION(XCHAL_UNALIGNED_LOAD_HW, XTENSA_OPTION_HW_ALIGNMENT) | \ /* Memory protection and translation */ \ XCHAL_OPTION(XCHAL_HAVE_MIMIC_CACHEATTR, \ -- 1.7.6.4