> So far I've been testing with hardware but I'm pretty sure I read > somewhere about an RL78 simulator, which would be a useful addition. > Does this simulator exist, and if so, how do I run the tests against it?
The simulator is part of the GDB build. > I tried 'make -k check RUNTESTFLAGS="--target_board=rl78-sim"' but in > amongst the errors I see 'ERROR: couldn't load description file for > rl78-sim', either it has a different name or I'm missing something on my > system (and a quick search didn't seem to find anything but I don't > really know what I'm looking for). You'll need something like this in your local ${DEJAGNU} file: { "rl78*-*" } { set boards_dir "/home/dj/dejagnu/baseboards" set target_list { rl78-sim } } Here's my rl78-sim.exp for dejagnu (it goes in whatever directory you specified above): # This is a list of toolchains that are supported on this board. set_board_info target_install {rl78-elf} # Load the generic configuration for this board. This will define a basic set # of routines needed by the tool to communicate with the board. load_generic_config "sim" # basic-sim.exp is a basic description for the standard Cygnus simulator. load_base_board_description "basic-sim" # "rl78" is the name of the sim subdir. setup_sim rl78 # No multilib options needed by default. process_multilib_options "" # We only support newlib on this target. We assume that all multilib # options have been specified before we get here. set_board_info compiler "[find_gcc]" set_board_info cflags "[libgloss_include_flags] [newlib_include_flags] -msim" set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]" # Doesn't pass arguments or signals, can't return results, and doesn't # do inferiorio. set_board_info noargs 1 set_board_info gdb,nosignals 1 set_board_info gdb,noresults 1 set_board_info gdb,noinferiorio 1 # Limit the stack size to something real tiny. set_board_info gcc,stack_size 4096 set_board_info gcc,timeout 300