NetBSD 7.99.62 introduced Debug Registers interface similar to the FreeBSD one.
This interface will land NetBSD-8.0.
Introduce support for this interface in Register Context NetBSD x86_64 unconditionally as older versions of NetBSD will not be supported.
This change allows to reduce diff with other ports and remove local copy of the RegisterInfos_x86_64.h content.
NetBSD Register Context for 32-bit x86 support will be added later.
Sponsored by <The NetBSD Foundation>
Would it be nicer to have a union in here? Something like:
struct DebugRegs { uint64_t debug_addr1; uint64_t debug_addr2; uint64_t debug_addr3; uint64_t reserved1; uint64_t reserved2; uint64_t debug_status; uint64_t debug_control; }; struct DBG { union { uint64_t dr[16]; DebugRegs regs; }; };