Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
Go to file
Jean-Paul Etienne be856d4b13 riscv32: riscv32-qemu: provide a more generic way of filtering IRQs from exceptions
Currently, if IRQ number != RISCV_MACHINE_TIMER_IRQ (only device IRQ in qemu),
riscv32-qemu was considering the IRQ as an exception. However, fake IRQs
can also be generated by setting corresponding bits in the Machine Interrupt
Pending register (mip). With the current implementation, these IRQs were
considered as unexpected exceptions.

To circumvent the problem, update the IRQ filtering mechanism by considering
an IRQ (IRQ number as reported by the mcause register) as an exception only
if its corresponding bit is NOT set in the mip register.

Change-Id: I4c581a84d83ee0ba2c4ea35f89ba732401eb8fa4
Signed-off-by: Jean-Paul Etienne <fractalclone@gmail.com>
2017-02-16 17:33:02 +00:00
.known-issues doc/api/networking: Add existing network protocol libraries APIs 2017-02-03 15:59:18 +02:00
arch riscv32: riscv32-qemu: provide a more generic way of filtering IRQs from exceptions 2017-02-16 17:33:02 +00:00
boards doc: boards: Move nRF5x DK board doc from the wiki to git 2017-02-15 10:16:02 +00:00
doc arc: enable gen_isr_tables mechanism 2017-02-15 04:54:47 +00:00
drivers dma: Introduce STM32F4x DMA driver 2017-02-16 11:17:28 +00:00
dts dts: hexiwear: fix fixup to use correct define 2017-02-11 07:00:38 +00:00
ext ext/lib/mbedtls: Add the TLS configuration file 2017-02-14 08:30:35 +02:00
include slist: add SYS_SLIST_ITERATE_FROM_NODE() 2017-02-16 04:56:23 +00:00
kernel kernel/sem: fix coding conventions 2017-02-16 04:56:27 +00:00
lib Merge "Merge remote-tracking branch 'origin/core'" 2017-02-15 04:33:25 +00:00
misc misc: Let the compiler choose whether to omit frame pointer 2017-02-08 13:14:16 +00:00
samples samples: net: Add README.rst to echo apps 2017-02-15 12:20:08 +02:00
scripts Merge "Merge remote-tracking branch 'origin/core'" 2017-02-15 04:33:25 +00:00
subsys net/mqtt: Remove length computations for some msg fields 2017-02-15 12:20:08 +02:00
tests test: repair test_tickless for ARC because _tsc_read is now present 2017-02-16 04:56:50 +00:00
.checkpatch.conf checkpatch: Remove reference to legacy IP stack 2017-02-08 13:05:27 +00:00
.gitattributes
.gitignore gitignore: Ignore Eclipse (Xtensa Xplorer) project files. 2017-02-13 08:04:27 -08:00
.gitreview
.mailmap
Kbuild Changed Kbuild to pass also KBUILD_CPPFLAGS to CC on addition to KBUILD_CFLAGS. 2017-02-13 08:04:27 -08:00
Kconfig license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Kconfig.zephyr license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
LICENSE
MAINTAINERS MAINTAINERS: added maintainer for riscv32 2017-02-03 19:31:41 +01:00
Makefile bump version to v1.7.99 2017-02-15 05:46:45 -08:00
Makefile.inc build: abstract emulation and replace qemu goal with run 2017-01-10 20:20:47 +00:00
Makefile.test tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
defaults.tc
zephyr-env.sh license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00