target/arm/cpregs: Include missing 'hw/registerfields.h' header

target/arm/cpregs.h uses the FIELD() macro defined in
"hw/registerfields.h". Include it in order to avoid when
refactoring unrelated headers:

  target/arm/cpregs.h:347:30: error: expected identifier
  FIELD(HFGRTR_EL2, AFSR0_EL1, 0, 1)
                               ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240118200643.29037-7-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-01-18 21:06:27 +01:00 committed by Peter Maydell
parent 5eb815c19a
commit 35d44e3f93

View File

@ -21,6 +21,8 @@
#ifndef TARGET_ARM_CPREGS_H #ifndef TARGET_ARM_CPREGS_H
#define TARGET_ARM_CPREGS_H #define TARGET_ARM_CPREGS_H
#include "hw/registerfields.h"
/* /*
* ARMCPRegInfo type field bits: * ARMCPRegInfo type field bits:
*/ */