Added HP-PA for the heck of it. Totally untested, of course.

Original commit message from CVS:
Added HP-PA for the heck of it.  Totally untested, of course.
This commit is contained in:
Erik Walthinsen 2001-09-05 21:50:43 +00:00
parent 1aff968e49
commit b1ccfa05fa
2 changed files with 18 additions and 0 deletions

View file

@ -141,6 +141,8 @@ case "x${target_cpu}" in
AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
xmips*) HAVE_CPU_MIPS=yes
AC_DEFINE(HAVE_CPU_MIPS, 1, [Define if the target CPU is a MIPS]) ;;
xhppa*) HAVE_CPU_HPPA=yes
AC_DEFINE(HAVE_CPU_HPPA, 1, [Define if the target CPU is a HPPA]) ;;
esac
dnl Determine endianness

View file

@ -144,6 +144,22 @@ struct minimal_stackframe {
/***** HP-PA *****/
#elif defined(HAVE_CPU_HPPA)
#define GST_ARCH_SET_SP(stackpointer) \
__asm__("copy %0,%%sp\n\t" : : "r"(stackpointer));
#define GST_ARCH_CALL(target) \
__asm__("copy $1,%%r22\n\t" // set call address \
".CALL\n\t" // call pseudo insn (why?) \
"bl $$dyncall,%%r31\n\t" : : "r"(target));
// assume stackframe is 16 bytes
#define GST_ARCH_SETUP_STACK(sp) sp -= 4
#else
#error Need to know about this architecture, or have a generic implementation
#endif