• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gdb/7.11.1/0001-sim-bfin-split-out-common-mach-model-defines-into-ar.patch
Romain NaourRomain Naour committed baba42687af12 Feb 2017
Raw file
Source viewDiff to previous
 
1
From 7a09ed68e203a813d88fb7fc6eeb1e92209561a5 Mon Sep 17 00:00:00 2001
2
From: Mike Frysinger <vapier@gentoo.org>
3
Date: Mon, 8 Aug 2016 13:06:49 +0800
4
Subject: [PATCH] sim: bfin: split out common mach/model defines into arch.h
5
 [PR sim/20438]
6
​
7
The current machs.h mixes common enums with Blackfin-specific defines.
8
This causes us troubles with header inclusion order such that we can't
9
drop the old SIM_CPU typedef (which is duplicated in common code).  By
10
splitting the two up, we can unwind this dependency chain, and drop the
11
old typedef.  It also fixes building with older gcc versions.
12
​
13
[Romain: backport from gdb 7.12]
14
Signed-off-by: Romain Naour <romain.naour@gmail.com>
15
​
16
---
17
 sim/bfin/ChangeLog  |  9 +++++++++
18
 sim/bfin/arch.h     | 44 ++++++++++++++++++++++++++++++++++++++++++++
19
 sim/bfin/machs.h    | 20 --------------------
20
 sim/bfin/sim-main.h |  8 ++------
21
 4 files changed, 55 insertions(+), 26 deletions(-)
22
 create mode 100644 sim/bfin/arch.h
23
​
24
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog
25
index 3dea7c9..a995436 100644
26
--- a/sim/bfin/ChangeLog
27
+++ b/sim/bfin/ChangeLog
28
@@ -1,3 +1,12 @@
29
+2016-08-13  Mike Frysinger  <vapier@gentoo.org>
30
+
31
+   PR sim/20438
32
+   * machs.h (MODEL_TYPE, MACH_ATTR, BFIN_INSN_*): Move ...
33
+   * arch.h: ... to this new header file.
34
+   * sim-main.h (SIM_CPU): Delete.
35
+   Include arch.h before sim-base.h, and move sim-base.h before
36
+   bfin-sim.h.
37
+
38
 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
39
 
40
    * config.in, configure: Regenerate.
41
diff --git a/sim/bfin/arch.h b/sim/bfin/arch.h
42
new file mode 100644
43
index 0000000..b86d3e9
44
--- /dev/null
45
+++ b/sim/bfin/arch.h
46
@@ -0,0 +1,44 @@
47
+/* Simulator for Analog Devices Blackfin processors.
48
+
49
+   Copyright (C) 2005-2016 Free Software Foundation, Inc.
50
+   Contributed by Analog Devices, Inc.
51
+
52
+   This file is part of simulators.
53
+
54
+   This program is free software; you can redistribute it and/or modify
55
+   it under the terms of the GNU General Public License as published by
56
+   the Free Software Foundation; either version 3 of the License, or
57
+   (at your option) any later version.
58
+
59
+   This program is distributed in the hope that it will be useful,
60
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
61
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
62
+   GNU General Public License for more details.
63
+
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.