From b0d83d2a8468553000bda6099fc5f907ec767b79 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 9 Feb 2016 00:15:55 -0800 Subject: Fix MULW/DIVW/etc. emulation code --- pk/pk.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pk/pk.h') diff --git a/pk/pk.h b/pk/pk.h index c76825b..88c5881 100644 --- a/pk/pk.h +++ b/pk/pk.h @@ -3,7 +3,11 @@ #ifndef _PK_H #define _PK_H -#define MAX_HARTS 32 // coupled to width of booted_harts_mask +#ifdef __riscv_atomic +# define MAX_HARTS 32 // coupled to width of booted_harts_mask +#else +# define MAX_HARTS 1 +#endif #ifndef __ASSEMBLER__ -- cgit v1.1