commit | 0da8ec70dc42871fbe3750255e52bab0f9e090d2 | [log] [tgz] |
---|---|---|
author | Watson Zeng <zhiwei@synopsys.com> | Fri Mar 19 17:51:19 2021 +0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Mar 19 13:56:59 2021 -0400 |
tree | 9012f3d2aa656d60f956afc720c7cae3c13cec84 | |
parent | 856ff7db3d0bf5b4c3b83bb6a716803346584bbc [diff] |
arch: arc: enable divide zero exception STATUS32.DZ(bit 13) is the EV_DivZero exception enable bit, and it's not enabled by default. we need to set it explicitly to enable divide zero exception on early boot and each thread's setup. The DZ bit is ignored on write and read as zero when there is no hardware division configured. So we can simply set DZ bit even if there is no hardware division configured. Signed-off-by: Watson Zeng <zhiwei@synopsys.com>