* config/tc-s390.c (init_default_arch): Make current_mode_mask

dependent on s390_arch_size and current_cpu dependent on
	current_mode_mask.
This commit is contained in:
Martin Schwidefsky 2003-06-18 11:18:46 +00:00
parent 2fe04c57c8
commit df9a398fe6
2 changed files with 21 additions and 8 deletions

View file

@ -1,3 +1,9 @@
2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
* config/tc-s390.c (init_default_arch): Make current_mode_mask
dependent on s390_arch_size and current_cpu dependent on
current_mode_mask.
2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
* configure.in: Add c4x as an architecture variant to tic4x.

View file

@ -327,22 +327,29 @@ init_default_arch ()
{
if (s390_arch_size == 0)
s390_arch_size = 32;
if (current_mode_mask == 0)
current_mode_mask = 1 << S390_OPCODE_ESA;
if (current_cpu == -1U)
current_cpu = S390_OPCODE_G5;
}
else if (strcmp (default_arch, "s390x") == 0)
{
if (s390_arch_size == 0)
s390_arch_size = 64;
if (current_mode_mask == 0)
current_mode_mask = 1 << S390_OPCODE_ZARCH;
if (current_cpu == -1U)
current_cpu = S390_OPCODE_Z900;
}
else
as_fatal ("Invalid default architecture, broken assembler.");
if (current_mode_mask == 0)
{
if (s390_arch_size == 32)
current_mode_mask = 1 << S390_OPCODE_ESA;
else
current_mode_mask = 1 << S390_OPCODE_ZARCH;
}
if (current_cpu == -1U)
{
if (current_mode_mask == (1 << S390_OPCODE_ESA))
current_cpu = S390_OPCODE_G5;
else
current_cpu = S390_OPCODE_Z900;
}
}
/* Called by TARGET_FORMAT. */