{
public:
+ const regs_info *get_regs_info () override;
+
+protected:
+
+ void low_arch_setup () override;
};
/* The singleton target ops object. */
tile_regmap,
};
-static struct regs_info regs_info =
+static struct regs_info myregs_info =
{
NULL, /* regset_bitmap */
&tile_usrregs_info,
&tile_regsets_info,
};
-static const struct regs_info *
-tile_regs_info (void)
+const regs_info *
+tile_target::get_regs_info ()
{
- return ®s_info;
+ return &myregs_info;
}
-static void
-tile_arch_setup (void)
+void
+tile_target::low_arch_setup ()
{
int pid = pid_of (current_thread);
unsigned int machine;
struct linux_target_ops the_low_target =
{
- tile_arch_setup,
- tile_regs_info,
tile_cannot_fetch_register,
tile_cannot_store_register,
NULL,