From 06935c67bba1b05d501f399a27841a3521c97fcd Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 20 Apr 2007 14:09:00 +0000 Subject: [PATCH] gas/ * config/m68k-parse.h (RAMBAR_ALT): New. * config/tc-m68k.c (mcf5206_ctrl, mcf5307_ctrl): New. (mcf_ctrl, mcf5208_ctrl, mcf5210a_ctrl, mcf5213_ctrl, mcf52235_ctrl, mcf5225_ctrl, mcf5235_ctrl, mcf5271_ctrl, mcf5275_ctrl, mcf5282_ctrl, mcf5329_ctrl, mcf5373_ctrl, mcfv4e_ctrl, mcf5475_ctrl, mcf5485_ctrl): Add RAMBAR synonym for RAMBAR1. (mcf5272_ctrl): Add RAMBAR0, replace add RAMBAR with RAMBAR_ALT. (m68k_cpus): Adjust 5206, 5206e & 5307 entries. (m68k_ip) : Detect when RAMBAR_ALT should be used. Add it to control register mapping. gas/testsuite/ * gas/m68k/ctrl-1.d, gas/m68k/ctrl-1.s: New. * gas/m68k/ctrl-2.d, gas/m68k/ctrl-2.s: New. * gas/m68k/all.exp: Add them. opcodes/ * m68k-dis.c (print_insn_arg): Show c04 as rambar0 and c05 as rambar1. --- opcodes/ChangeLog | 5 +++++ opcodes/m68k-dis.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 329126cc7a..f92ffcc95e 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2007-04-20 Nathan Sidwell + + * m68k-dis.c (print_insn_arg): Show c04 as rambar0 and c05 as + rambar1. + 2007-04-20 Alan Modra * ppc-dis.c (print_insn_powerpc): Adjust for struct powerpc_operand diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c index 16ad7e4d58..d964ef4b28 100644 --- a/opcodes/m68k-dis.c +++ b/opcodes/m68k-dis.c @@ -645,7 +645,9 @@ print_insn_arg (const char *d, {"%dtt0",0x006}, {"%dtt1",0x007}, {"%buscr",0x008}, {"%usp", 0x800}, {"%vbr", 0x801}, {"%caar", 0x802}, {"%msp", 0x803}, {"%isp", 0x804}, - {"%flashbar", 0xc04}, {"%rambar", 0xc05}, /* mcf528x added these. */ + /* reg c04 is sometimes called flashbar or rambar. + rec c05 is also sometimes called rambar. */ + {"%rambar0", 0xc04}, {"%rambar1", 0xc05}, /* Should we be calling this psr like we do in case 'Y'? */ {"%mmusr",0x805}, -- 2.11.0