Pass return_method to _push_dummy_call
[deliverable/binutils-gdb.git] / gdb / v850-tdep.c
index 119fb6d6bd2f6a2730d80ffb66ed0c7ec2d347ad..cc582ca54dfbd935b881f8f8faccb2e1e963272c 100644 (file)
@@ -1013,7 +1013,7 @@ v850_push_dummy_call (struct gdbarch *gdbarch,
                      int nargs,
                      struct value **args,
                      CORE_ADDR sp,
-                     int struct_return,
+                     function_call_return_method return_method,
                      CORE_ADDR struct_addr)
 {
   enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
@@ -1039,7 +1039,7 @@ v850_push_dummy_call (struct gdbarch *gdbarch,
 
   argreg = E_ARG0_REGNUM;
   /* The struct_return pointer occupies the first parameter register.  */
-  if (struct_return)
+  if (return_method == return_method_struct)
     regcache_cooked_write_unsigned (regcache, argreg++, struct_addr);
 
   /* Now load as many as possible of the first arguments into
This page took 0.024441 seconds and 4 git commands to generate.