Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Fix two formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
palmer-dabbelt committed Nov 14, 2016
1 parent 1b58570 commit c24e88a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gdb/riscv-tdep.c
Expand Up @@ -1043,12 +1043,13 @@ riscv_push_dummy_call (struct gdbarch *gdbarch,
{
struct type *value_type = value_enclosing_type (args[i]);
const gdb_byte *arg_bits = value_contents_all (args[i]);
int regnum = TYPE_CODE (value_type) == TYPE_CODE_FLT ?
RISCV_FA0_REGNUM : RISCV_A0_REGNUM;
int regnum = (TYPE_CODE (value_type) == TYPE_CODE_FLT
? RISCV_FA0_REGNUM : RISCV_A0_REGNUM);

regcache_cooked_write_unsigned
(regcache, regnum + i,
extract_unsigned_integer (arg_bits, tdep->register_size, byte_order));
extract_unsigned_integer
(arg_bits, tdep->register_size, byte_order));
}

/* Store struct value address. */
Expand Down

0 comments on commit c24e88a

Please sign in to comment.