From nobody Tue Feb 10 11:34:08 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=mail.uni-paderborn.de ARC-Seal: i=1; a=rsa-sha256; t=1591260983; cv=none; d=zohomail.com; s=zohoarc; b=TuBYkArddypaVami3LWiRouRXt8WI5XUIznj/PH0mRk97r9hdcnmsfHIdEE0icC8nnPiOLitOSmjy72F+Z51bWzDMbo+3JB7luj46ssLAJcUFbBtgbFTdgY9qL+cFbXJwkC4q5u8TE40+8DL+fvxE4ZvgeuM5E/txUzjP0LxbDQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591260983; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MpbdUh0ybsPNtHPHjnJ/5VHUFX7xWOSoCrPVaFL9Wew=; b=LEzHRoR3qYIy1XKmv3IlVymdQ50N0+2n2PL4SVYrU9PmuGhhAMoAnG0Hh3/sAdS5lKEY2Ca9wQdPTTbLcSBKZ3t3XcmWT3bdPenMySidXoCpGqer+HyATjGuGSJiVO6/firQRkt+FaMWm6jrAWQXPIxzANB3sRzDbdhr/LJCcVI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15912609834991003.6946378614418; Thu, 4 Jun 2020 01:56:23 -0700 (PDT) Received: from localhost ([::1]:36230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jglfi-0001X2-90 for importer@patchew.org; Thu, 04 Jun 2020 04:56:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgleQ-00087y-TS for qemu-devel@nongnu.org; Thu, 04 Jun 2020 04:55:02 -0400 Received: from shirlock.uni-paderborn.de ([2001:638:502:c003::15]:42324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgleQ-0002E3-3k for qemu-devel@nongnu.org; Thu, 04 Jun 2020 04:55:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.uni-paderborn.de; s=20170601; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MpbdUh0ybsPNtHPHjnJ/5VHUFX7xWOSoCrPVaFL9Wew=; b=XAtw/kCzzNJ/PYkP+vHAG9y0n0 0PWD7GIvN7vuR0t4BkDEvcIs1HHPi3S/sSHuo2yQ7XLyRgrAHft5tu5LxJk9qqYF3vQz4qbrfbKg+ Kyqn/Ob0vm+EmK80tM3fFMkYVnsNKascuIwZ0YqK2i+c8GMw+ZmZKe+dpDZTx+he9cAY=; From: Bastian Koppelmann To: qemu-devel@nongnu.org Subject: [PATCH v2 05/15] tests/tcg/tricore: Add build infrastructure Date: Thu, 4 Jun 2020 10:54:31 +0200 Message-Id: <20200604085441.103087-6-kbastian@mail.uni-paderborn.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200604085441.103087-1-kbastian@mail.uni-paderborn.de> References: <20200604085441.103087-1-kbastian@mail.uni-paderborn.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IMT-Spam-Score: 0.0 () X-PMX-Version: 6.4.9.2830568, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2020.6.4.84518, AntiVirus-Engine: 5.74.0, AntiVirus-Data: 2020.6.3.5740003 X-Sophos-SenderHistory: ip=2a02:908:2214:e5bc::95d, fs=6898283, da=78869964, mc=176, sc=3, hc=173, sp=1, fso=6898283, re=0, sd=0, hd=0 X-IMT-Authenticated-Sender: uid=kbastian,ou=People,o=upb,c=de Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2001:638:502:c003::15; envelope-from=kbastian@mail.uni-paderborn.de; helo=shirlock.uni-paderborn.de X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" this includes the Makefile and linker script to build all the tests. Signed-off-by: Bastian Koppelmann Reviewed-by: Alex Benn=C3=A9e --- tests/tcg/tricore/Makefile.softmmu-target | 17 +++++++ tests/tcg/tricore/link.ld | 60 +++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 tests/tcg/tricore/Makefile.softmmu-target create mode 100644 tests/tcg/tricore/link.ld diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target new file mode 100644 index 0000000000..4a2cd6f218 --- /dev/null +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -0,0 +1,17 @@ +HOST_CC =3D gcc + +TESTS_PATH =3D $(SRC_PATH)/tests/tcg/tricore + +LDFLAGS =3D -T$(TESTS_PATH)/link.ld +ASFLAGS =3D + +QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel + +%.pS: $(TESTS_PATH)/%.S + $(HOST_CC) -E -o $@ $< + +%.o: %.pS + $(AS) $(ASFLAGS) -o $@ $< + +%.tst: %.o + $(LD) $(LDFLAGS) $< -o $@ diff --git a/tests/tcg/tricore/link.ld b/tests/tcg/tricore/link.ld new file mode 100644 index 0000000000..364bcdc00a --- /dev/null +++ b/tests/tcg/tricore/link.ld @@ -0,0 +1,60 @@ +/* Default linker script, for normal executables */ +OUTPUT_FORMAT("elf32-tricore") +OUTPUT_ARCH(tricore) +ENTRY(_start) + +/* the internal ram description */ +MEMORY +{ + text_ram (rx!p): org =3D 0x80000000, len =3D 15K + data_ram (w!xp): org =3D 0xd0000000, len =3D 130K +} +/* + * Define the sizes of the user and system stacks. + */ +__USTACK_SIZE =3D DEFINED (__USTACK_SIZE) ? __USTACK_SIZE : 1K ; +/* + * Define the start address and the size of the context save area. + */ +__CSA_BEGIN =3D 0xd0000000 ; +__CSA_SIZE =3D 8k ; +__CSA_END =3D __CSA_BEGIN + __CSA_SIZE ; + +SECTIONS +{ + .text : + { + *(.text) + . =3D ALIGN(8); + } > text_ram + + .rodata : + { + *(.rodata) + *(.rodata1) + } > data_ram + + .data : + { + . =3D ALIGN(8) ; + *(.data) + *(.data.*) + . =3D ALIGN(8) ; + __USTACK =3D . + __USTACK_SIZE -768; + + } > data_ram + /* + * Allocate space for BSS sections. + */ + .bss : + { + BSS_BASE =3D . ; + *(.bss) + *(COMMON) + . =3D ALIGN(8) ; + } > data_ram + /* Make sure CSA, stack and heap addresses are properly aligned. */ + _. =3D ASSERT ((__CSA_BEGIN & 0x3f) =3D=3D 0 , "illegal CSA start addres= s") ; + _. =3D ASSERT ((__CSA_SIZE & 0x3f) =3D=3D 0 , "illegal CSA size") ; + +} --=20 2.26.2