target/riscv: debug: Introduce build_tdata1() to build tdata1 register content
commit9d5a84db91f12bd843206a57e0cde01e6a9d488d
authorFrank Chang <frank.chang@sifive.com>
Fri, 9 Sep 2022 13:42:09 +0000 (9 21:42 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 27 Sep 2022 01:23:57 +0000 (27 11:23 +1000)
treed86d750ae4e0c10ce7e16c5fa97fa32b3598d680
parenta42bd0016654cafd6ca8ca4dbb82fc921ca19ae4
target/riscv: debug: Introduce build_tdata1() to build tdata1 register content

Introduce build_tdata1() to build tdata1 register content, which can be
shared among all types of triggers.

Signed-off-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
[bmeng: moved RV{32,64}_DATA_MASK definition to this patch]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Message-Id: <20220909134215.1843865-3-bmeng.cn@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/debug.c
target/riscv/debug.h