From patchwork Sat Oct 31 03:05:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 538586 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A12EB140D24 for ; Sat, 31 Oct 2015 14:08:17 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=rGNXEXN/; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 927B628BCE4; Sat, 31 Oct 2015 04:04:27 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id CC38028BF68 for ; Sat, 31 Oct 2015 04:04:04 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 31 Oct 2015 04:03:57 +0100 (CET) Received: by pacfv9 with SMTP id fv9so94385592pac.3 for ; Fri, 30 Oct 2015 20:05:41 -0700 (PDT) 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=5PLngbeHtlJfI/WE3cAZf6Oomgt8UHIqhJGeUDt3kqc=; b=rGNXEXN/7/A7eCQkJLpn0n5Ql5ae3xHg8EfDahCeKReYjdtl9SfXC1QT/wJShtgpHu PFF9hyCiQ6DId5djbhKznM29zPHCz5ufPwiJ99DNKw6ZQ3GRPWt5OhDMIdy0tcd/gfVV xj3Ow9oyZJuvRVMs2JXtnrSlZPdUIzlCijGRtdKffSV13dlk3/WH4bliYicydobDDhuA CsE7RM6Its6dSTJ0Us173yUjZ1jrVavXB0pkkkNW7Tl9lix/Hxlyn4YmojNAOMAlR73Q GxmLE6usZtctdtAVLTBl8PCvnIWyiSl5su+3Q8Q2nbJ6OOv9yWg1y4A2YAh8UO38gHPr 5UYQ== X-Received: by 10.68.65.42 with SMTP id u10mr12488919pbs.8.1446260741536; Fri, 30 Oct 2015 20:05:41 -0700 (PDT) Received: from debian.corp.sankuai.com ([103.29.140.57]) by smtp.gmail.com with ESMTPSA id we9sm10835653pab.3.2015.10.30.20.05.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Oct 2015 20:05:41 -0700 (PDT) From: Yousong Zhou To: florian@openwrt.org Date: Sat, 31 Oct 2015 11:05:25 +0800 Message-Id: <1446260727-25188-4-git-send-email-yszhou4tech@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1446260727-25188-1-git-send-email-yszhou4tech@gmail.com> References: <1446260727-25188-1-git-send-email-yszhou4tech@gmail.com> Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH v2 3/5] malta: set CPU_TYPE:=24kc. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" There are instructions (e.g. wsbh) only available in MIPS32R2 which is the isa level used by many MIPS targets in OpenWrt. As we use the malta target mostly for development and testing purposes, setting the CPU_TYPE to 24Kc will make the emulation more real. The following is output from qemu-system-mipsel 2.3.0 root@OpenWrt:/# cat /proc/cpuinfo | grep 'cpu model\|isa' cpu model : MIPS 24Kc V0.0 FPU V0.0 isa : mips1 mips2 mips32r1 mips32r2 Signed-off-by: Yousong Zhou --- target/linux/malta/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/malta/Makefile b/target/linux/malta/Makefile index 06cb68a..c9f1586 100644 --- a/target/linux/malta/Makefile +++ b/target/linux/malta/Makefile @@ -8,6 +8,7 @@ include $(TOPDIR)/rules.mk BOARD:=malta BOARDNAME:=MIPS Malta CoreLV board (qemu) +CPU_TYPE:=24kc SUBTARGETS:=le be #le64 be64 INITRAMFS_EXTRA_FILES:= MAINTAINER:=Florian Fainelli