diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-20 22:59:03 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-20 22:59:03 +0300 |
commit | 7343eefbded126b84a25eb3db9666d827376c5ef (patch) | |
tree | 1a12a6c7be21ad295dec9aa64ec7221b9e2210c0 /newlib/libc/machine/h8300/defines.h | |
parent | 94cacaf60b1aacb95fbdde78fe9e62bfd4b63871 (diff) |
2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
* libc/machine/h8300/defines.h : Correct pointer register defines
for normal mode.
* libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs
for normal mode.
* libc/machine/h8300/reg_memcpy.S : Likewise.
* libc/machine/h8300/reg_memset.S : Likewise.
* libc/machine/h8300/strcmp.S : Likewise.
Diffstat (limited to 'newlib/libc/machine/h8300/defines.h')
-rw-r--r-- | newlib/libc/machine/h8300/defines.h | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/newlib/libc/machine/h8300/defines.h b/newlib/libc/machine/h8300/defines.h index c6ae3df10..84b2506d5 100644 --- a/newlib/libc/machine/h8300/defines.h +++ b/newlib/libc/machine/h8300/defines.h @@ -28,6 +28,7 @@ #define S2H r6h #ifdef __H8300__ + #define MOVP mov.w /* pointers are 16 bits */ #define ADDP add.w #define CMPP cmp.w @@ -41,9 +42,29 @@ #define S0P r4 #define S1P r5 #define S2P r6 -#endif + +#endif /* __H8300__ */ #ifdef __H8300H__ + +#ifdef __NORMAL_MODE__ + +#define MOVP mov.w /* pointers are 16 bits */ +#define ADDP add.w +#define CMPP cmp.w +#define PUSHP push +#define POPP pop + +#define A0P r0 +#define A1P r1 +#define A2P r2 +#define A3P r3 +#define S0P r4 +#define S1P r5 +#define S2P r6 + +#else /* !__NORMAL_MODE__ */ + #define MOVP mov.l /* pointers are 32 bits */ #define ADDP add.l #define CMPP cmp.l @@ -58,13 +79,35 @@ #define S1P er5 #define S2P er6 +#endif /* !__NORMAL_MODE__ */ + #define A0E e0 #define A1E e1 #define A2E e2 #define A3E e3 -#endif + +#endif /* __H8300H__ */ #ifdef __H8300S__ + +#ifdef __NORMAL_MODE__ + +#define MOVP mov.w /* pointers are 16 bits */ +#define ADDP add.w +#define CMPP cmp.w +#define PUSHP push +#define POPP pop + +#define A0P r0 +#define A1P r1 +#define A2P r2 +#define A3P r3 +#define S0P r4 +#define S1P r5 +#define S2P r6 + +#else /* !__NORMAL_MODE__ */ + #define MOVP mov.l /* pointers are 32 bits */ #define ADDP add.l #define CMPP cmp.l @@ -79,8 +122,11 @@ #define S1P er5 #define S2P er6 +#endif /* !__NORMAL_MODE__ */ + #define A0E e0 #define A1E e1 #define A2E e2 #define A3E e3 -#endif + +#endif /* __H8300S__ */ |