2001-01-09  NIIBE Yutaka  <gniibe@m17n.org>

	* stnic.c (eth_node_addr): Get the address from DIP switch.

	* init-sesh4.S: Remove the setting of node_address (as BSS setting
	clear it out).

	* config/config.h-sesh3-eth (CONFIG_ETHER_CONFIG_WORD): New
	configuration.

	* init-sesh3.S: Support BOOT_CONFIG_WORD.
	* config/config.h-sesh3-eth (CONFIG_MEMORY_SIZE): 32MB (was 16MB).
	* stnic.c (node_addr): Let it be in BSS.  Don't initialize here.
	(node_addr_template): New Variable.

2001-01-08  NIIBE Yutaka  <gniibe@m17n.org>

	* init-sesh4.S: Add setting Ethernet node_address from the data
	specified by DIP switch.

	* stnic.c (node_addr): Make it public (was static).

2001-01-05  NIIBE Yutaka  <gniibe@m17n.org>

	* precompiled/sh-stub-sesh4-eth: New file.

	* init-sesh4.S: Don't use two different setting for RTCSR.
	Wait 30 times for DRAM refresh (was only 8 times).

	* stnic.c (pkt): Use remcomInBuffer.
	* defs.h (BUFMAX): Changed to 1546 (was: 1024).
	* entry.S (exception_handling_table): Enlarge the table for SH7750.

	* machine/sesh4.mem: Changed to let it run at P1 area, ROM length
	16KB.
	* sh-stub.c (flush_icache_range): Delete unused variables.
	(gdb_handle_exception): We have limited length on remcomOutBuffer.

2001-01-04  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c (reset_interrupt_request_sources): New function.
	(disable_MMU, set_RB, set_BL): New functions.
	(set_boot_signature, get_boot_signature): New functions.
	(start_main): Check boot signature for reboot.
	(shutdown): Set boot signature.

	* stnic.c (delay): Added another delay.

2000-12-28  NIIBE Yutaka  <gniibe@m17n.org>

	* stnic.c: Use sleep128 for delay.
	(eth_pio_write): Add the work-around.
	(eth_transmit): Improved.  Only call eth_pio_write once.

	* main.c (sleep128): It's 128 rather 64.
	(get_tick_1, get_tick, reset_tick): New functions.

2000-12-27  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c (handle_bios_call): New BIOS call to eth_node_addr.
	* stnic.c (eth_node_addr): New function.

2000-12-26  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-stub.c (jump_to_P2, back_to_P1): Defined for both
	of SH-3 and SH-4.
	* sh-stub.c (mem2hex): Add type coercion.
	* main.c (rtc 5,6): New calls.

2000-12-23  SUGIOKA Toshinobu <sugioka@itonet.co.jp>

	* sh-stub.c (CCR_CACHE_ICI, jump_to_P2, back_to_P1): defined.
	(flush_icache_range, cache_wback_all, cache_control): executable
	in P1 on SH-4.
	(gdb_handle_exception): flush I-cache after modify memory on SH-4.

2000-12-23  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c (banner, help_message): Version 0.8.

	* main.c (start_main): Added '1' and '2' commands.
	(shutdown, rtc, sleep64): New functions.

	* machine/sesh3.mem: Place it at cachable area.

2000-11-26  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c: Version 0.7.

	* sh-stub.lds.S (CONFIG_TEST4): Added.
	* Makefile (CONFIG_TEST4): Added.
	* machine/test4.mem: New file.

	* Makefile (AFLAGS, CFLAGS): Use -m4-nofpu (instead of -m4).
	(sh-stub.lds): Use -traditional for CPP processing.
	* string.h (memcpy, strcpy): Added declarations.
	* main.c: Include "string.h"
	* entry.S: Don't put '$' for register spec.

	* init-cqsh4.S (FRQCR_D): PLL2 on (was: off).

2000-10-24  NIIBE Yutaka  <gniibe@m17n.org>

	* config/config.h-sesh4-eth: New file.

	* main.c (handle_bios_call): Added Ethernet functions.
	* defs.h (eth_reset, eth_receive, eth_transmit, eth_disable): Added
	declarations.

	* stnic.c: New file.

	Follow the changes of the GNU Toolchain.
	* sh-stub.lds.S (OUTPUT_FORMAT): Change BFD name.

2000-10-14  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c (boot): Remove '$' for register spec.

2000-09-27  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c: Version 0.6.

	* sh-sci.c (init_serial): Set SCFCR after the 1-bit interval.
	(WAIT_RFCR_COUNTER): Changed to 500 (was: 200).

2000-09-17  YAEGASHI Takeshi <yaegashi@ma.kcom.ne.jp>

	Add Dreamcast support.
	* tools/dreamcast/sh-stub-boot.S: New file.
	* tools/dreamcast/scramble.c: New file.
	* tools/dreamcast/roast.sh: New file.
	* tools/dreamcast/kernel-boot.S: New file.
	* tools/dreamcast/boot.lds: New file.
	* tools/dreamcast/README: New file.
	* tools/dreamcast/Makefile: New file.
	* tools/dreamcast/.gdbinit: New file.
	* machine/dreamcast.mem: New file.
	* config/cnfig.mk-dreamcast: New file.
	* config/config.h-dreamcast: New file.
	* sh-stub.lds.S: Include "machine/dreamcast.mem".
	* sh-sci.c (BPS_SETTING_VALUE): 13 for CONFIG_DREAMCAST.
	* Makefile: Add support for CONFIG_DREAMCAST.

2000-09-09  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-stub.c (cache_control): New function.
	(cache_wback_all): New function.

2000-09-02  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c (handle_bios_call): New interface to cache_control.
	* defs.h (cache_control): New definition.

2000-08-16  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c: Version 0.5.

	* init-cqsh4.S (WCR3_D): Set "holdwait time" to 0 (instead of 1,
	for area 0,2,4,5).
	(SDMR2): Wrote 0xAA, instead of 0x00.
	(MCR_D1, MCR_D2): Set bit 28 for precharge time.

2000-08-09  Takashi Yoshii  <yoshii-takashi@hitachi-ul.co.jp>

	* main.c (start_main): Support smooth communication between GDB.

	* sh-sci.c (getDebugChar, getDebugCharTimeout, getDebugCharReady,
	handleError): Handle SCLSR for overrun error.
	(SCLSR, SCIF_ORER, SCIF_ORERR_CLEAR): New macros.

2000-08-08  Toshiharu Nozawa  <nozawat@hitachi-ul.co.jp>

	SolutionEngine PCMCIA support.
	* io.h (IDE_PORT_SHIFT): Support CONFIG_MRSHPC.

	* ide.c (init_ide): Support CONFIG_MRSHPC.

	* config/config.h-sesh3-pcmcia: New file.
	* config/config.h-sesh4-pcmcia: New file.
	* config/config.mk-sesh3-pcmcia: New file.
	* config/config.mk-sesh4-pcmcia: New file.

2000-08-05  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c: Version 0.4.

	* ide.c (init_ide): Use CONFIG_IO_BASE.

	* config/config.h-cqsh4: Added CONFIG_MEMORY_SIZE.
	* config/config.h-sesh4-ide: Likewise.
	* config/config.h-cqsh3: Likewise.
	Added CONFIG_IO_BASE.

	* main.c (handle_bios_call): Added memory size and io base
	service.

2000-08-04  NIIBE Yutaka  <gniibe@m17n.org>

	* init-cqsh4.S (WCR3_D): Change the hold time for AREA1.

2000-08-02  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c (handle_bios_call): Added feature query service.

	* ide.c (init_ide): Change the value of interrupt level for
	CONFIG_CQ_BRIDGE.  We need IRQ14 here.

2000-07-31  NIIBE Yutaka  <gniibe@m17n.org>

	CQ Bridge Support for CqREEK SH-4.
	* config/config.mk-cqsh4 (CONFIG_IDE): Added.
	* config/config.h-cqsh4: Added CONFIG_IDE and CONFIG_CQ_BRIDGE.
	Added CONFIG_RAM_BOOT.
	* ide.c (init_ide): Add initialization for CONFIG_CQ_BRIDGE.
	* io.h (IDE_PORT_SHIFT): Add definition for CONFIG_CQ_BRIDGE.
	* init-cqsh4.S (WCR1_D, BCR1_D): Update value for CQ Bridge
	adapter.

2000-07-25  NIIBE Yutaka  <gniibe@m17n.org>

	* io.h (CONFIG_IDE): Conditionalize.

2000-07-21  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c: Version 0.3.

	* config/config.h-{cqsh3,sesh3-ide,sesh4-ide,test}
	(CONFIG_RAM_BOOT): Set P1 area.

	* main.c (serial_output): LF --> CRLF.
	(handle_bios_call): Call getDebugCharTimeout.

	* sh-sci.c (getDebugCharTimeout): New Function.
	(delayX): New function.

	* defs.h: Ditto.

2000-07-19  NIIBE Yutaka  <gniibe@m17n.org>

	* main.c (handle_bios_call): Added #32 serial string output.

2000-07-17  Greg Banks  <gnb@alphalink.com.au>

	* Makefile: Changed sh-stub to sh-stub.exe.

	* entry.S: Added explanatory comments.

	* sh-stub.c (doSStep): Fix bugs which incorrectly sign-extended
	branch instruction displacements.
	(gdb_handle_exception): Implement 'D' (detach).
	(leds): New function.
	(mem2hex, hex2mem, ebin2mem): Change the types of argument
	(added const qualifier).

	* main.c (handle_bios_call): Implement #31 and #254.
	Bug fix for #255.

	* main.c (serial_output): New function.
	Fixed bug with BIOS function 0 (console output) which didn't
	encode the output packet data properly.

	* main.c (handle_bios_call): Changed BIOS function 0 to take a
	buffer and a length, instead of a null-terminated string, to
	work better with the kernel's printk.

2000-07-13  Yutarou Ebihara <ebiharaml@si-linux.com>

	* init-cqsh3.S (PCR_D): Change the value 0x0050 so that
	directly-connected compact flash works well (was: 0x0000).

	* Makefile (tools/cqsh3rom, cqsh3): Added entries to build
	hacked image for CqREEK SH-3 EPROM.

2000-07-11  NIIBE Yutaka  <gniibe@m17n.org>

	* machine/cqsh3.mem: Set the ROM size 32KB.
	* config/{config.h-cqsh3,config.mk-cqsh3}: Updated.

	* defs.h: New file.

	* sh-stub.c (printouthex): New function.
	(start-gdbstub): Removed.

	* main.c: New file.

	* entry.S (start): Call start_main instead of start_gdbstub.

2000-07-10  NIIBE Yutaka  <gniibe@m17n.org>

	* machine/test.mem: More memory on ROM.

	* sh-stub.c (start_gdbstub): Bug fix.  put "l" for license
	command.

	* config/config.mk-test (CONFIG_IDE): Added.
	* config/config.h-test: Added CONFIG_IDE and CONFIG_RAM_BOOT.

	* Makefile (MACHINE_DEPENDS): Add ide.o when CONFIG_IDE is set.

	* entry.S (start): Initialize Serial Port after cleared
	BSS section.
	Call init_ide.
	Include "config.h".

	* io.h (ide_outw, ide_outb, ide_inw, ide_inb): New Functions.
	(ide_offset): New Variable.
	(delay): New Function.

	* ide.c: New file.

	* sh-stub.c (handle_bios_call): Call putString.
	(handle_bios_call): Implement second storage access.
	(boot): New Function.
	(start_gdbstub): Implement boot command.

2000-07-09  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-sci.c (putString): Put CR+LF when '\n' in string.

2000-07-08  NIIBE Yutaka  <gniibe@m17n.org>

	* config/config.mk-cqsh.big: New file.
	* config/config.h-cqsh4.big: New file.

	* init-cqsh4.S: Added setting of FRQCR.  Removed register dump.

	* entry.S (VBR_INIT): Set it `start'.
	* sh-sci.c (init_serial): Set SCFCR before setting SCBRR.
	* sh-stub.c (start_gdbstub): Implement command loop.

2000-07-03  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-sci.c (putString): New Function.

2000-06-21  NIIBE Yutaka  <gniibe@m17n.org>

	* *.mem: Move to machine/ directory.
	config.h-*, config.mk-*: Move to config/ directory.

	* Makefile: Added case of CONFIG_TEST.

	* config.h-test, config.mk-test, test.mem: New files.

	* sh-stub.lds.S: Add CONFIG_TEST.
	Remove CONFIG_YAEGASHI.

	* sh-stub.c (registers): Make it unsigned.
	(doSStep): Bug fix for BT/S and BF/S.  We don't put trapa
	at the slot.
	Bug fix for BRAF/BSRF, branch position is different place.

2000-06-21  Greg Banks  <gnb@alphalink.com.au>

	* sh-stub.c (ebin2mem): New function.
	(gdb_handle_exception): Implement binary transfer.

2000-06-19  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-stub.c (gdb_handle_exception): Make trapa_value as argument.
	(ctrl_inl): Added.
	(handle_exception): Handle TRA value and BIOS call.
	(handle_bios_call): New function.
	(BIOS_CALL_TRAP): New Define.
	(GDBCOOKIE): Removed.

2000-05-28  YAEGASHI Takeshi  <yaegashi@ma.kcom.ne.jp>

	* Makefile, sh-stub.lds.S: Add CONFIG_HP600, remove CONFIG_YAEGASHI

	* sh-sci.c: addd #define of SCPDR, BPS_SETTING_VALUE

	* init-hp600.S, config.h-hp600, config.mk-hp600, hp600.mem: New
	files, add HP Jornada 600 support.

2000-05-22  Yutarou Ebihara <ebiharaml@si-linux.com>

	* cqsh3.c: New File.

2000-05-22  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-stub.lds.S (.stab, .comment, .stabstr): Define them so that
	it doesn't placed .text section.
	Bug reported by Toru Kijima <kijima@toyocom.co.jp> and
	Yutarou Ebihara <ebiharaml@si-linux.com>.

2000-05-18  KOMORIYA Takeru  <komoriya@robotics.is.tohoku.ac.jp>

	* init-apsh4.S, config.h-apsh4, config.mk-apsh4, apsh4.mem: New
	Files.

	* Makefile: Added APSH4 support.

	* sh-stub.lds.S: Added CONFIG_APSH4.

	* sh-sci.c: Added baudrate setting(BPS_SETTING_VALUE) for APSH4

	* entry.S (VBR_INIT): Assume .text is vector base address.

2000-05-09  NIIBE Yutaka  <gniibe@m17n.org>

	* init-sesh4.S (FRQCR_A, FRQCR_D): Set FRQCR, as it may
	unstable because of SCIF.
	(RTCOR_D): Change the value for 66MHz.

2000-05-06  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-sci.c (init_serial): Don't use hardware flow control.
	(Since CqREEK SH-4 doesn't support this.  To support this, we need
	connect CTS2 jumper with soldering iron).

	* init-sesh3.S (WCR1_D, WCR2_D): More waits for Area 4.

2000-05-05  NIIBE Yutaka  <gniibe@m17n.org>

	* init-sesh3.S (MCR_D): Fix the value (was: 0x00AC).

2000-05-01  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-sci.c (init_serial): Move SCFCR setting after the wait.
	(init_serial): Set SCPCR.
	(SCPCR): New macro.

	* sh-stub.lds.S: Added CONFIG_SESH3 and  CONFIG_SESH4.

	* Makefile (MACHINE_DEPENDS): Add CONFIG_SESH3.

	* init-sesh3.S, config.h-sesh3, config.mk-sesh3, sesh3.mem: New
	files.

	* entry.S (CCR_CACHE_DISABLE): New macro.
	(start): Make sure cache is disabled before setting BSC.

	* init-sesh4.S: Follow the way of SolutionEngine Monitor does.

2000-04-05  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-sci.c (SCSCR_INIT): Introduced for SCIF support.

	* Makefile: Added SESH4 support.
	* config.mk-sesh4, config.h-sesh4, sesh4.mem, init-sesh4.S: New
	files.

2000-03-04  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-sci.c: Rename from sh-scif.c.

	* init-cqsh4.S: Dump registers to memory (for reset debug).

	* entry.S (start): Remove initialization of $fpscr.
	When we don't use FPU, it doesn't matter.

2000-02-27  NIIBE Yutaka  <gniibe@m17n.org>

	* linkage.h: Prefix "_" removed for new environment.
	* sh-stub.lds.S: Ditto.
	* Makefile (LINKFLAGS): Ditto.
	(CROSS_COMPILE): Use "sh-linux-gnu-" instead of "sh-elf".

	* config.h-cqsh4: Define CONFIG_LITTLE_ENDIAN.

2000-02-05  John Hassey <hassey@gte.net>

	* sh-stub.c (putpacket): Bug fix.  Handle the case where
	runlen == 99.  (Was reported 11 Dec, 1999.)

1999-11-28  NIIBE Yutaka  <gniibe@m17n.org>

	* init-cqsh3.S: Add PCMCIA support.

1999-11-17  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-scif.c (SCI_ERROR_CLEAR): Bug fix for the value.
	* sh-scif.c (SCSMR): Bug fix. SMR register should be accessed as
	byte on SH-3.

1999-11-11  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-scif.c (SCBRR): Bug fix. BRR register should be accessed
	as byte.

1999-10-09  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-scif.c (SC_SR): Byte access for SCI on SH-3.

1999-10-07  NIIBE Yutaka  <gniibe@m17n.org>

	* cqsh3.mem: New file.

	* sh-scif.c: Merge SCI implementation into one.

	* io.h (p4_in, p4_out): New macros.

1999-10-05  NIIBE Yutaka  <gniibe@m17n.org>

	* init-cqsh3.S: New file.

	* sh-scif.c: Change serial registername not including "2".
	(init_serial): Removed interrupt setting.

	* sh-stub.c (gdb_handle_exception): See if trap number == 0xff.

1999-10-02  NIIBE Yutaka  <gniibe@m17n.org>

	* entry.S (exception_handling_table): Fixed.

1999-09-26  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-stub.c (SSTEP_INSTR): Change from 0xc3ff.

1999-09-24  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-stub.c (flush_icache_range): Implemented.  Needed for SH-4.

1999-09-23  NIIBE Yutaka  <gniibe@m17n.org>

	* entry.S (start): Initialize FPSCR on SH-4.
	Don't include config.h, use compiler definition (__sh3__/__SH4__)
	instead.

	* sh-scif.c: Renamed frm sh4-scif.c, since this code can be shared
	between SH-3 and SH-4.

1999-09-19  NIIBE Yutaka  <gniibe@m17n.org>

	* sh4-scif.c: Set IPRC.
	* entry.S (do_timer): Handle timer interrupt (just ignore).

1999-09-18  NIIBE Yutaka  <gniibe@m17n.org>

	* entry.S (interrupt): Add missing align to 0x600.

	* sh-stub.c (COND_BR_MASK): Changed so that we can handle BT/S and
	BF/S instruction.
	(UCOND_RBR_MASK): Changed for BSRF/BRAF instruction.
	(SSTEP_INSTR): Change trap number to 0xFF (was 0x00).
	(breakpoint): Likewise.

1999-09-15  NIIBE Yutaka  <gniibe@m17n.org>

	* sh-stub.lds.S: Support little endian.

1999-09-14  NIIBE Yutaka  <gniibe@m17n.org>

	* Makefile, cqsh4.mem, entry.S, init-cqsh4.S, io.h, linkage.h,
	setjmp.S, setjmp.h, sh-stub.c, sh-stub.lds.S, sh4-scif.c,
	string.c, string.h: Initial Revision.
