summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/patch.c
diff options
context:
space:
mode:
authorVincent Chen <vincent.chen@sifive.com>2020-04-16 10:38:08 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-05-18 11:38:12 -0700
commitedde5584c7ab5d18b87f092fe6fe8a72590e7100 (patch)
tree62900d9ef5b9aae651ed7a5132d178339bac5d6f /arch/riscv/kernel/patch.c
parentd96575709cc7056f34fdd5cdc16bcffe5bdb573d (diff)
downloadlwn-edde5584c7ab5d18b87f092fe6fe8a72590e7100.tar.gz
lwn-edde5584c7ab5d18b87f092fe6fe8a72590e7100.zip
riscv: Add SW single-step support for KDB
In KGDB, the GDB in the host is responsible for the single-step operation of the software. In other words, KGDB does not need to derive the next pc address when performing a software single-step operation. KGDB just inserts the break instruction at the indicated address according to the GDB instructions. This approach does not work in KDB because the GDB does not involve the KDB process. Therefore, this patch provides KDB a software single-step mechanism to use. Signed-off-by: Vincent Chen <vincent.chen@sifive.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel/patch.c')
0 files changed, 0 insertions, 0 deletions