aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2016-09-12 16:32:02 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2016-09-12 16:32:02 +0200
commit58af639728582db42765e6f2c73ea61e75b66c8e (patch)
treec32e76fbb7c3d2ece5cc9af289503918db2ab7b7
parent8b71537b6be5d66d6b6cf1273f7acab0621adfc5 (diff)
downloadgdb-58af639728582db42765e6f2c73ea61e75b66c8e.zip
gdb-58af639728582db42765e6f2c73ea61e75b66c8e.tar.gz
gdb-58af639728582db42765e6f2c73ea61e75b66c8e.tar.bz2
S/390: Fix facility bit default.
gas/ChangeLog: 2016-09-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/tc-s390.c: Set all facitily bits by default
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-s390.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7a26a1a..c2dadcb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ * config/tc-s390.c: Set all facitily bits by default
+
2016-09-12 Patrick Steuer <steuer@linux.vnet.ibm.com>
* testsuite/gas/s390/zarch-z196.d: Adjust testcase.
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c
index 098debc..ec3c5e5 100644
--- a/gas/config/tc-s390.c
+++ b/gas/config/tc-s390.c
@@ -41,8 +41,11 @@ static int s390_arch_size = 0;
Since with S/390 a newer CPU always supports everything from its
predecessors this will accept every valid asm input. */
static unsigned int current_cpu = S390_OPCODE_MAXCPU - 1;
+/* All facilities are enabled by default. */
+static unsigned int current_flags = S390_INSTR_FLAG_FACILITY_MASK;
+/* The mode mask default is picked in init_default_arch depending on
+ the current cpu. */
static unsigned int current_mode_mask = 0;
-static unsigned int current_flags = 0;
/* Set to TRUE if the highgprs flag in the ELF header needs to be set
for the output file. */