This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH : H8300 Simulator File I/O Implementation
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: dvenkat at noida dot hcltech dot com
- Cc: binutils at sources dot redhat dot com, nickc at redhat dot com
- Date: Thu, 26 Dec 2002 11:21:31 -0500 (EST)
- Subject: Re: PATCH : H8300 Simulator File I/O Implementation
- References: <E04CF3F88ACBD5119EFE00508BBB21210688A61B@exch-01.noida.hcltech.com>
Hi,
> Thu Dec 26 18:28:56 IST 2002 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
>
> *h8300.h: Added some more pseudo opcodes for system call processing.
>
I just tried Venky's h8300 simulator patches. At least a simple file
I/O seems to work. Since his patches span binutils, newlib, and gdb,
I'd like to start with a patch to include/opcode/h8300.h.
OK to apply?
p.s.
I regenerated the binutils' portion of the diff as the original had
some offset.
Kazu Hirata
Index: h8300.h
===================================================================
RCS file: /cvs/src/src/include/opcode/h8300.h,v
retrieving revision 1.9
diff -c -r1.9 h8300.h
*** h8300.h 19 Nov 2002 22:56:14 -0000 1.9
--- h8300.h 26 Dec 2002 15:15:29 -0000
***************
*** 301,306 ****
--- 301,316 ----
#define O_STM 86
#define O_STMAC 87
#define O_LAST 88
+ /* Change made for System Call processing. */
+ #define O_SYS_CREAT 100
+ #define O_SYS_OPEN 101
+ #define O_SYS_READ 102
+ #define O_SYS_WRITE 103
+ #define O_SYS_LSEEK 104
+ #define O_SYS_CLOSE 105
+ #define O_SYS_STAT 106
+ #define O_SYS_FSTAT 107
+ /* End of System Call specific Changes. */
#define SB 0
#define SW 1
#define SL 2