+2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * mep-tdep.c (current_me_module): Add cast.
+ (mep_gdbarch_init): Likewise.
+
2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
* m32c-tdep.c (m32c_move_reg_t): Replace with...
ULONGEST regval;
regcache_cooked_read_unsigned (get_current_regcache (),
MEP_MODULE_REGNUM, ®val);
- return regval;
+ return (CONFIG_ATTR) regval;
}
else
return gdbarch_tdep (target_gdbarch ())->me_module;
/* The way to get the me_module code depends on the object file
format. At the moment, we only know how to handle ELF. */
if (bfd_get_flavour (info.abfd) == bfd_target_elf_flavour)
- me_module = elf_elfheader (info.abfd)->e_flags & EF_MEP_INDEX_MASK;
+ {
+ int flag = elf_elfheader (info.abfd)->e_flags & EF_MEP_INDEX_MASK;
+ me_module = (CONFIG_ATTR) flag;
+ }
else
me_module = CONFIG_NONE;
}