+
+ /* Returns true if the target supports memory tagging, false otherwise. */
+ virtual bool supports_memory_tagging ()
+ TARGET_DEFAULT_RETURN (false);
+
+ /* Return the allocated memory tags of type TYPE associated with
+ [ADDRESS, ADDRESS + LEN) in TAGS.
+
+ LEN is the number of bytes in the memory range. TAGS is a vector of
+ bytes containing the tags found in the above memory range.
+
+ It is up to the architecture/target to interpret the bytes in the TAGS
+ vector and read the tags appropriately.
+
+ Returns true if fetching the tags succeeded and false otherwise. */
+ virtual bool fetch_memtags (CORE_ADDR address, size_t len,
+ gdb::byte_vector &tags, int type)
+ TARGET_DEFAULT_NORETURN (tcomplain ());
+
+ /* Write the allocation tags of type TYPE contained in TAGS to the memory
+ range [ADDRESS, ADDRESS + LEN).
+
+ LEN is the number of bytes in the memory range. TAGS is a vector of
+ bytes containing the tags to be stored to the memory range.
+
+ It is up to the architecture/target to interpret the bytes in the TAGS
+ vector and store them appropriately.
+
+ Returns true if storing the tags succeeded and false otherwise. */
+ virtual bool store_memtags (CORE_ADDR address, size_t len,
+ const gdb::byte_vector &tags, int type)
+ TARGET_DEFAULT_NORETURN (tcomplain ());
+
+ /* Return the x86 XSAVE extended state area layout. */
+ virtual x86_xsave_layout fetch_x86_xsave_layout ()
+ TARGET_DEFAULT_RETURN (x86_xsave_layout ());