diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-02-09 00:15:55 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-02-19 13:01:11 -0800 |
commit | b0d83d2a8468553000bda6099fc5f907ec767b79 (patch) | |
tree | 1d1b6976a123423aa46f543bde8de14d3010612c /pk/mentry.S | |
parent | 57cbf902c90e11fc15bdf402016ac02635dfc78a (diff) | |
download | pk-b0d83d2a8468553000bda6099fc5f907ec767b79.zip pk-b0d83d2a8468553000bda6099fc5f907ec767b79.tar.gz pk-b0d83d2a8468553000bda6099fc5f907ec767b79.tar.bz2 |
Fix MULW/DIVW/etc. emulation code
Diffstat (limited to 'pk/mentry.S')
-rw-r--r-- | pk/mentry.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pk/mentry.S b/pk/mentry.S index baf35ec..0bc56f0 100644 --- a/pk/mentry.S +++ b/pk/mentry.S @@ -125,6 +125,7 @@ mentry: j init_first_hart .LmultiHart: +#if MAX_HARTS > 1 # make sure our hart id is within a valid range li a1, MAX_HARTS bgeu a0, a1, .LmultiHart @@ -142,6 +143,9 @@ mentry: beqz sp, 1b j init_other_hart +#else + j .LmultiHart +#endif .Linterrupt: sll a1, a1, 1 # discard MSB |