binutils-gdb/sim/rl78
DJ Delorie 0952813b0b Make RL78 disassembler and simulator respect ISA for mul/div
[gas]
	* config/rl78-defs.h (rl78_isa_g10): New.
	(rl78_isa_g13): New.
	(rl78_isa_g14): New.
	* config/rl78-parse.y (ISA_G10): New.
	(ISA_G13): New.
	(ISA_G14): New.
	(MULHU, MULH, MULU, DIVHU, DIVWU, MACHU, MACH): Use them.
	* config/tc-rl78.c (rl78_isa_g10): New.
	(rl78_isa_g13): New.
	(rl78_isa_g14): New.

[gdb]
	* rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
	rl78_decode_opcode

[include]
	* dis-asm.h (print_insn_rl78_g10): New.
	(print_insn_rl78_g13): New.
	(print_insn_rl78_g14): New.
	(rl78_get_disassembler): New.
	* opcode/rl78.h (RL78_Dis_Isa): New.
	(rl78_decode_opcode): Add ISA parameter.

[opcodes]
	* disassemble.c (disassembler): Choose suitable disassembler based
	on E_ABI.
	* rl78-decode.opc (rl78_decode_opcode): Take ISA parameter.  Use
	it to decode mul/div insns.
	* rl78-decode.c: Regenerate.
	* rl78-dis.c (print_insn_rl78): Rename to...
	(print_insn_rl78_common): ...this, take ISA parameter.
	(print_insn_rl78): New.
	(print_insn_rl78_g10): New.
	(print_insn_rl78_g13): New.
	(print_insn_rl78_g14): New.
	(rl78_get_disassembler): New.

[sim]
	* rl78/cpu.c (g14_multiply): New.
	* rl78/cpu.h (g14_multiply): New.
	* rl78/load.c (rl78_load): Decode ISA completely.
	* rl78/main.c (main): Expand -M to include other ISAs.
	* rl78/rl78.c (decode_opcode): Decode based on ISA.
	* rl78/trace.c (rl78_disasm_fn): New.
	(sim_disasm_init): Reset it.
	(sim_disasm_one): Get correct disassembler for ISA.
2015-04-30 15:25:49 -04:00
..
ChangeLog Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
Makefile.in Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
aclocal.m4 sim: rename tconfig.in to tconfig.h 2015-03-16 01:23:52 -04:00
config.in sim: update zlib handling 2015-04-01 01:07:57 -04:00
configure sim: fix the PKGVERSION define 2015-04-13 02:41:10 -04:00
configure.ac Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cpu.c Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
cpu.h Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
gdb-if.c Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
load.c Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
load.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
main.c Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
mem.c Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
mem.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
rl78.c Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
trace.c Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
trace.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00