binutils-gdb/sim
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
..
arm sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
avr sim: avr: Fix 'multiple definition of sim_{read,write}' 2015-04-27 09:54:37 -04:00
bfin Fix typos in sim sources exposed by static analysis. 2015-04-24 15:43:21 +01:00
common Fix problems in the sim sources discovered by running the cppcheck static analysis tool. 2015-04-29 16:02:02 +01:00
cr16 sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
cris sim: clean up duplicate sim-engine hooks 2015-04-18 04:40:27 -04:00
d10v sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
erc32 Fix problems in the sim sources discovered by running the cppcheck static analysis tool. 2015-04-29 16:02:02 +01:00
frv sim: trim old USING_SIM_BASE_H define 2015-04-18 04:32:56 -04:00
ft32 sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
h8300 sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
igen Fix typos in sim sources exposed by static analysis. 2015-04-24 15:43:21 +01:00
iq2000 sim: trim old USING_SIM_BASE_H define 2015-04-18 04:32:56 -04:00
lm32 sim: clean up duplicate sim-engine hooks 2015-04-18 04:40:27 -04:00
m32c sim: fix the PKGVERSION define 2015-04-13 02:41:10 -04:00
m32r sim: clean up duplicate sim-engine hooks 2015-04-18 04:40:27 -04:00
m68hc11 Fix problems in the sim sources discovered by running the cppcheck static analysis tool. 2015-04-29 16:02:02 +01:00
mcore sim: mcore: clean up printf warnings 2015-04-21 03:10:16 -04:00
microblaze sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
mips sim: clean up duplicate sim-engine hooks 2015-04-18 04:40:27 -04:00
mn10300 sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
moxie sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
msp430 sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
ppc Fix problems in the sim sources discovered by running the cppcheck static analysis tool. 2015-04-29 16:02:02 +01:00
rl78 Make RL78 disassembler and simulator respect ISA for mul/div 2015-04-30 15:25:49 -04:00
rx Fix typo in check for valid register number in RX sim. 2015-04-24 15:31:36 +01:00
sh sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
sh64 sim: trim old USING_SIM_BASE_H define 2015-04-18 04:32:56 -04:00
testsuite Do unset_currtarget_info ldscript for all simulator testsuites. 2015-04-13 01:56:04 +02:00
v850 sim: unify SIM_CPU definition 2015-04-18 04:31:36 -04:00
.gitignore sim: rename tconfig.in to tconfig.h 2015-03-16 01:23:52 -04:00
ChangeLog Regenerate configure in sim 2015-04-02 05:43:07 -07:00
MAINTAINERS Add myself as the maintainer for the MSP430 sim. 2014-03-12 11:02:57 +00: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
README-HACKING sim: rename tconfig.in to tconfig.h 2015-03-16 01:23:52 -04:00
configure sim: testsuite: make subdir unconditional 2015-03-29 11:51:13 -04:00
configure.ac sim: testsuite: make subdir unconditional 2015-03-29 11:51:13 -04:00
configure.tgt sim: testsuite: make subdir unconditional 2015-03-29 11:51:13 -04:00