mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
In the current hypervisor, there are many members of CPU_reg_name used to check range and useless register names. Define some CPU_REG_XX_FIRST and CPU_REG_XX_LAST MACROs to make range checking clear; Remove useless register names CPU_REG_XX_LAST in CPU_reg_name; Update the related caller. V1-->V2: Update a mistake, replace second CPU_REG_SEG_FIRST with CPU_REG_SEG_LAST in ASSERT. V2-->V3: Add '()' for bool expression in ASSERT. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>