X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmicroblaze-tdep.h;h=4fbdf9933f00f74f86c3cf0a791810e5dbe65e12;hb=63ffd7c9131c0e9723016d33cf8d435cc508d02b;hp=ae4d86a43f9e6fae33f84199d11ecf459594c898;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/microblaze-tdep.h b/gdb/microblaze-tdep.h index ae4d86a43f..4fbdf9933f 100644 --- a/gdb/microblaze-tdep.h +++ b/gdb/microblaze-tdep.h @@ -1,6 +1,6 @@ /* Target-dependent code for Xilinx MicroBlaze. - Copyright 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -26,30 +26,8 @@ struct gdbarch_tdep { }; -struct microblaze_frame_cache -{ - /* Base address. */ - CORE_ADDR base; - CORE_ADDR pc; - - /* Do we have a frame? */ - int frameless_p; - - /* Frame size. */ - int framesize; - - /* Frame register. */ - int fp_regnum; - - /* Offsets to saved registers. */ - int register_offsets[57]; /* Must match MICROBLAZE_NUM_REGS. */ - - /* Table of saved registers. */ - struct trad_frame_saved_reg *saved_regs; -}; - /* Register numbers. */ -enum microblaze_regnum +enum microblaze_regnum { MICROBLAZE_R0_REGNUM, MICROBLAZE_R1_REGNUM, MICROBLAZE_SP_REGNUM = MICROBLAZE_R1_REGNUM, @@ -107,9 +85,33 @@ enum microblaze_regnum MICROBLAZE_RTLBX_REGNUM, MICROBLAZE_RTLBSX_REGNUM, MICROBLAZE_RTLBLO_REGNUM, - MICROBLAZE_RTLBHI_REGNUM + MICROBLAZE_RTLBHI_REGNUM, + MICROBLAZE_SLR_REGNUM, MICROBLAZE_NUM_CORE_REGS = MICROBLAZE_SLR_REGNUM, + MICROBLAZE_SHR_REGNUM, + MICROBLAZE_NUM_REGS }; +struct microblaze_frame_cache +{ + /* Base address. */ + CORE_ADDR base; + CORE_ADDR pc; + + /* Do we have a frame? */ + int frameless_p; + + /* Frame size. */ + int framesize; + + /* Frame register. */ + int fp_regnum; + + /* Offsets to saved registers. */ + int register_offsets[MICROBLAZE_NUM_REGS]; + + /* Table of saved registers. */ + struct trad_frame_saved_reg *saved_regs; +}; /* All registers are 32 bits. */ #define MICROBLAZE_REGISTER_SIZE 4