+2018-11-23  Alan Hayward  <alan.hayward@arm.com>
+
+       * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
+       (aarch64_cannot_fetch_register): Likewise.
+       (struct linux_target_ops): Update references.
+
 2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
 
        * linux-ppc-low.c: Include nat/linux-ptrace.h.
 
   return regcache->tdesc->reg_defs.size () == AARCH64_SVE_NUM_REGS;
 }
 
-/* Implementation of linux_target_ops method "cannot_store_register".  */
-
-static int
-aarch64_cannot_store_register (int regno)
-{
-  return regno >= AARCH64_NUM_REGS;
-}
-
-/* Implementation of linux_target_ops method "cannot_fetch_register".  */
-
-static int
-aarch64_cannot_fetch_register (int regno)
-{
-  return regno >= AARCH64_NUM_REGS;
-}
-
 static void
 aarch64_fill_gregset (struct regcache *regcache, void *buf)
 {
 {
   aarch64_arch_setup,
   aarch64_regs_info,
-  aarch64_cannot_fetch_register,
-  aarch64_cannot_store_register,
+  NULL, /* cannot_fetch_register */
+  NULL, /* cannot_store_register */
   NULL, /* fetch_register */
   aarch64_get_pc,
   aarch64_set_pc,