From patchwork Sun Jun 8 16:57:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Bruno X-Patchwork-Id: 357261 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 BB5471400B0 for ; Mon, 9 Jun 2014 03:04:37 +1000 (EST) Received: from localhost ([::1]:57164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtgWJ-0003Xd-Mz for incoming@patchwork.ozlabs.org; Sun, 08 Jun 2014 13:04:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtgPi-0001j9-Jp for qemu-devel@nongnu.org; Sun, 08 Jun 2014 12:57:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtgPa-0005Kz-DS for qemu-devel@nongnu.org; Sun, 08 Jun 2014 12:57:46 -0400 Received: from ignoranthack.me ([199.102.79.106]:50369 helo=mail.ignoranthack.me) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtgPa-0005Kt-9i for qemu-devel@nongnu.org; Sun, 08 Jun 2014 12:57:38 -0400 Received: from alice.hsd1.ca.comcast.net. (c-50-131-4-11.hsd1.ca.comcast.net [50.131.4.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id B65A0193B45; Sun, 8 Jun 2014 16:57:37 +0000 (UTC) From: Sean Bruno To: qemu-devel@nongnu.org Date: Sun, 8 Jun 2014 09:57:31 -0700 Message-Id: <1402246651-71099-11-git-send-email-sbruno@freebsd.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1402246651-71099-1-git-send-email-sbruno@freebsd.org> References: <1402246651-71099-1-git-send-email-sbruno@freebsd.org> X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 199.102.79.106 Cc: Sean Bruno Subject: [Qemu-devel] [PATCH 10/10 v4] bsd-user: Add TARGET_HW_MACHINE TARGET_HW_MACHINE_ARCH for future use 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 Signed-off-by: Sean Bruno --- bsd-user/i386/syscall.h | 2 ++ bsd-user/sparc/syscall.h | 2 ++ bsd-user/sparc64/syscall.h | 2 ++ bsd-user/x86_64/syscall.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/bsd-user/i386/syscall.h b/bsd-user/i386/syscall.h index 8028fc8..52de302 100644 --- a/bsd-user/i386/syscall.h +++ b/bsd-user/i386/syscall.h @@ -178,5 +178,7 @@ struct target_vm86plus_struct { #define UNAME_MACHINE "i386" +#define TARGET_HW_MACHINE UNAME_MACHINE +#define TARGET_HW_MACHINE_ARCH UNAME_MACHINE #endif /* ! _I386_SYSCALL_H_ */ diff --git a/bsd-user/sparc/syscall.h b/bsd-user/sparc/syscall.h index 7ed2152..3a5b1e2 100644 --- a/bsd-user/sparc/syscall.h +++ b/bsd-user/sparc/syscall.h @@ -27,6 +27,8 @@ struct target_pt_regs { }; #define UNAME_MACHINE "sun4" +#define TARGET_HW_MACHINE "sparc" +#define TARGET_HW_MACHINE_ARCH "sparc" #define TARGET_SPARC_UTRAP_INSTALL 1 #define TARGET_SPARC_SIGTRAMP_INSTALL 2 diff --git a/bsd-user/sparc64/syscall.h b/bsd-user/sparc64/syscall.h index 8571092..58cc38d 100644 --- a/bsd-user/sparc64/syscall.h +++ b/bsd-user/sparc64/syscall.h @@ -27,6 +27,8 @@ struct target_pt_regs { }; #define UNAME_MACHINE "sun4u" +#define TARGET_HW_MACHINE "sparc" +#define TARGET_HW_MACHINE_ARCH "sparc64" #define TARGET_SPARC_UTRAP_INSTALL 1 #define TARGET_SPARC_SIGTRAMP_INSTALL 2 diff --git a/bsd-user/x86_64/syscall.h b/bsd-user/x86_64/syscall.h index 4e77235..4fff6a5 100644 --- a/bsd-user/x86_64/syscall.h +++ b/bsd-user/x86_64/syscall.h @@ -129,6 +129,8 @@ struct target_msqid64_ds { #define UNAME_MACHINE "x86_64" +#define TARGET_HW_MACHINE "amd64" +#define TARGET_HW_MACHINE_ARCH "amd64" #define TARGET_ARCH_SET_GS 0x1001 #define TARGET_ARCH_SET_FS 0x1002