/* Target-dependent code for Analog Devices Blackfin processor, for GDB.
- Copyright (C) 2005-2019 Free Software Foundation, Inc.
+ Copyright (C) 2005-2021 Free Software Foundation, Inc.
Contributed by Analog Devices, Inc.
#include "dis-asm.h"
#include "sim-regno.h"
#include "gdb/sim-bfin.h"
-#include "dwarf2-frame.h"
+#include "dwarf2/frame.h"
#include "symtab.h"
#include "elf-bfd.h"
#include "elf/bfin.h"
{
struct type *value_type = value_enclosing_type (args[i]);
- total_len += (TYPE_LENGTH (value_type) + 3) & ~3;
+ total_len += align_up (TYPE_LENGTH (value_type), 4);
}
/* At least twelve bytes of stack space must be allocated for the function's
{
struct type *value_type = value_enclosing_type (args[i]);
struct type *arg_type = check_typedef (value_type);
- int container_len = (TYPE_LENGTH (arg_type) + 3) & ~3;
+ int container_len = align_up (TYPE_LENGTH (arg_type), 4);
sp -= container_len;
write_memory (sp, value_contents (args[i]), container_len);
static CORE_ADDR
bfin_frame_align (struct gdbarch *gdbarch, CORE_ADDR address)
{
- return (address & ~0x3);
+ return align_down (address, 4);
}
enum bfin_abi
return gdbarch;
}
+void _initialize_bfin_tdep ();
void
-_initialize_bfin_tdep (void)
+_initialize_bfin_tdep ()
{
register_gdbarch_init (bfd_arch_bfin, bfin_gdbarch_init);
}