Message ID | 20221216220158.6317-4-philmd@linaro.org |
---|---|
State | New |
Headers | show |
Series | target/i386: Header cleanups around "cpu.h" | expand |
On 12/16/22 14:01, Philippe Mathieu-Daudé wrote: > 'Reg' is defined as 'MMXReg', itself declared in "cpu.h". > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- > target/i386/ops_sse.h | 1 + > target/i386/ops_sse_header.h | 3 +++ > 2 files changed, 4 insertions(+) No, both of these are multiply included. If you like, rename them "*.inc.h". r~
diff --git a/target/i386/ops_sse.h b/target/i386/ops_sse.h index 3cbc36a59d..68c88c9ee3 100644 --- a/target/i386/ops_sse.h +++ b/target/i386/ops_sse.h @@ -19,6 +19,7 @@ */ #include "crypto/aes.h" +#include "cpu.h" #if SHIFT == 0 #define Reg MMXReg diff --git a/target/i386/ops_sse_header.h b/target/i386/ops_sse_header.h index 8a7b2f4e2f..5631a6d1e1 100644 --- a/target/i386/ops_sse_header.h +++ b/target/i386/ops_sse_header.h @@ -16,6 +16,9 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ + +#include "cpu.h" + #if SHIFT == 0 #define Reg MMXReg #define SUFFIX _mmx
'Reg' is defined as 'MMXReg', itself declared in "cpu.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- target/i386/ops_sse.h | 1 + target/i386/ops_sse_header.h | 3 +++ 2 files changed, 4 insertions(+)