From patchwork Tue Feb 11 08:43:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 319172 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 30ABB2C00B8 for ; Tue, 11 Feb 2014 19:46:50 +1100 (EST) Received: from localhost ([::1]:60260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD8zP-0000eR-Sc for incoming@patchwork.ozlabs.org; Tue, 11 Feb 2014 03:46:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD8xJ-0006E5-Jv for qemu-devel@nongnu.org; Tue, 11 Feb 2014 03:44:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WD8xA-0002gy-CJ for qemu-devel@nongnu.org; Tue, 11 Feb 2014 03:44:37 -0500 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:53074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD8xA-0002gs-4J for qemu-devel@nongnu.org; Tue, 11 Feb 2014 03:44:28 -0500 Received: by mail-la0-f48.google.com with SMTP id mc6so5550204lab.21 for ; Tue, 11 Feb 2014 00:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fdaxsld+XnP1szLZvwVhHmvlngpww6iiTRSCZRex/ak=; b=TttxUwVJ/+GzMkiJ/B8AISoDsN6hxH1IGXkjEyzalbf1liqNGRuc1HZTP3dCMThVdz 20UerWejU5xMJqRyT6mPXyPrV2SlEK19sm2jFGL69nCgmL2W2iZayOjtaMkBlFcn8/Mv sJEEJsQ/62NGo3wfWETrerrYaF45/xBm9/2SuPEsxHtRhBqtEY4MdUEqzUVvxsFQRhpQ gRU8+9jgnDIku1wJMd4yzKii9efx0DMguOJN6aTP15GQVXCtR1eHrpe6lUXoqsAEbZqx Bd8waNrwyYzYU6tFMopFde54oUc0oIgAKczGBZldorlxCrULzr6c8vUmru2Nl9W0TVRu 2/5w== X-Received: by 10.112.43.70 with SMTP id u6mr23923191lbl.30.1392108267061; Tue, 11 Feb 2014 00:44:27 -0800 (PST) Received: from octofox.metropolis ([188.134.19.124]) by mx.google.com with ESMTPSA id k1sm18809833lbc.5.2014.02.11.00.44.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Feb 2014 00:44:26 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Tue, 11 Feb 2014 12:43:33 +0400 Message-Id: <1392108215-20794-5-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1392108215-20794-1-git-send-email-jcmvbkbc@gmail.com> References: <1392108215-20794-1-git-send-email-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::230 Cc: Max Filippov Subject: [Qemu-devel] [PATCH 4/6] target-xtensa: add overridable test_init macro X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Some test suites, like MMU, need per-test initialization. Don't make them redefine test macro, add test_init for that purpose. Signed-off-by: Max Filippov --- tests/tcg/xtensa/macros.inc | 4 ++++ tests/tcg/xtensa/test_mmu.S | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/tcg/xtensa/macros.inc b/tests/tcg/xtensa/macros.inc index c9be1ce..ead8528 100644 --- a/tests/tcg/xtensa/macros.inc +++ b/tests/tcg/xtensa/macros.inc @@ -43,8 +43,12 @@ main: simcall .endm +.macro test_init +.endm + .macro test name //print test_\name + test_init test_\name: .global test_\name .endm diff --git a/tests/tcg/xtensa/test_mmu.S b/tests/tcg/xtensa/test_mmu.S index 5d87fbb..4bc34e5 100644 --- a/tests/tcg/xtensa/test_mmu.S +++ b/tests/tcg/xtensa/test_mmu.S @@ -2,9 +2,9 @@ test_suite mmu -.purgem test +.purgem test_init -.macro test name +.macro test_init movi a2, 0x00000004 idtlb a2 movi a2, 0x00100004