From patchwork Thu Mar 28 22:41:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 32056 Received: (qmail 110957 invoked by alias); 28 Mar 2019 22:41:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 110940 invoked by uid 89); 28 Mar 2019 22:41:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1518 X-HELO: mail-wm1-f65.google.com Received: from mail-wm1-f65.google.com (HELO mail-wm1-f65.google.com) (209.85.128.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Mar 2019 22:41:39 +0000 Received: by mail-wm1-f65.google.com with SMTP id y197so592185wmd.0 for ; Thu, 28 Mar 2019 15:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id; bh=/ebPiHb9DwR1K13wweDgm3SxhG7hLKjgJrQwi+6EhWU=; b=YyKozQXnzNwfnAeZOSAL1nil2g6Mldm9exl/OT2hxLtF25wgqs6/7HDtNP3zabR8AG HWvwEYEf2XARh4UH/+J2WrBx4voI/S1Mr0zpiQ/mcaapVLfHe58G/DSPjnwCjbfwLRRu 52OYH4AzpRtrP3wkL5Ok+UNhC9lBUfEJk8eHNiCI16RIWNNb+JW1wR6REOnY2JAq/+hm C9nFM36JTDMXjkrRa2dJtEbqyB7TXpA50SUJmKyt7G3iL2Xnj6g++AzxPJb22InLyAbR oRmy1vPBfDnB1mfXYdzVDF75m0G5Cr0NIBmT8Dn7nGES/A5f9oxk//Ql7rDkHcaxAEp5 nr4w== Return-Path: Received: from localhost (host81-151-161-58.range81-151.btcentralplus.com. [81.151.161.58]) by smtp.gmail.com with ESMTPSA id e9sm855109wrp.35.2019.03.28.15.41.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2019 15:41:36 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH] sim: fix all sim builds Date: Thu, 28 Mar 2019 22:41:33 +0000 Message-Id: <20190328224133.15558-1-andrew.burgess@embecosm.com> X-IsSubscribed: yes This commit: commit ef9866970ce6683d40465fb7c3168f87a1dcd1b7 Date: Thu Mar 28 06:40:30 2019 +0900 sim/common: convert sim-arange to use sim-inline broke many simulator targets. I fixed aarch64 in a previous commit without realising how many other target were also broken. This commit adds the missing includes (sim-assert.h and libiberty.h), which seem to be needed by many simulator targets, in a central location, this should fix most builds. sim/common/ChangeLog: * sim-base.h: Add 'sim-assert.h' include. * sim-basics.h: Add 'libiberty.h' include. --- sim/common/ChangeLog | 5 +++++ sim/common/sim-base.h | 1 + sim/common/sim-basics.h | 2 ++ 3 files changed, 8 insertions(+) diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h index d07ff2168c3..60072d334d8 100644 --- a/sim/common/sim-base.h +++ b/sim/common/sim-base.h @@ -93,6 +93,7 @@ typedef struct _sim_cpu sim_cpu; #include "sim-watch.h" #include "sim-memopt.h" #include "sim-cpu.h" +#include "sim-assert.h" /* We require all sims to dynamically allocate cpus. See comment up top about diff --git a/sim/common/sim-basics.h b/sim/common/sim-basics.h index 5aa76db4249..0cf0bd62361 100644 --- a/sim/common/sim-basics.h +++ b/sim/common/sim-basics.h @@ -147,6 +147,8 @@ typedef enum { #include "sim-utils.h" +#include "libiberty.h" + /* Note: Only the simpler interfaces are defined here. More heavy weight objects, such as core and events, are defined in the more serious sim-base.h header. */