]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/m32r-tdep.c
Add M32R_ARG_REGISTER_SIZE
[thirdparty/binutils-gdb.git] / gdb / m32r-tdep.c
index 1d0d7edbc042131b8042153aba75b8a94fff8ac7..4701f7a89e0cad37a183c260086bc471a10d952f 100644 (file)
@@ -39,6 +39,9 @@
 #include "m32r-tdep.h"
 #include <algorithm>
 
+/* The size of the argument registers (r0 - r3) in bytes.  */
+#define M32R_ARG_REGISTER_SIZE 4
+
 /* Local functions */
 
 extern void _initialize_m32r_tdep (void);
@@ -677,7 +680,7 @@ m32r_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
   enum type_code typecode;
   CORE_ADDR regval;
   gdb_byte *val;
-  gdb_byte valbuf[MAX_REGISTER_SIZE];
+  gdb_byte valbuf[M32R_ARG_REGISTER_SIZE];
   int len;
 
   /* First force sp to a 4-byte alignment.  */