Forum Discussion
Altera_Forum
Honored Contributor
19 years agoassemble under nios2
Hi all, i write a program under nios2 using assemble lanauge, following is the source code # include <linux/module.h># include <linux/kernel.h> void print(void) { printk("function...
Altera_Forum
Honored Contributor
19 years agoHi qiunuoku,
I'm assuming that 'code' is a valid pointer ... and the opcodes are correct. That said, if you're using a data cache, you need to flush the region you modified with the new instructions. Then if you're using and instruction cache, you need invalidate the appropiate region as well. Otherwise, you will likely be executing stale bits rather than your copied code. Regards, --Scott