* [PATCH] Add new counter-enable CSRs
@ 2017-02-23 17:37 Palmer Dabbelt
2017-02-24 16:25 ` Nick Clifton
0 siblings, 1 reply; 3+ messages in thread
From: Palmer Dabbelt @ 2017-02-23 17:37 UTC (permalink / raw)
To: binutils; +Cc: Andrew Waterman
From: Andrew Waterman <andrew@sifive.com>
include/ChangeLog:
2017-02-22 Andrew Waterman <andrew@sifive.com>
* opcode/riscv-opc.h (CSR_SCOUNTEREN): New define.
(CSR_MCOUNTEREN): Likewise.
(scounteren): Declare register.
(mcounteren): Likewise.
---
include/ChangeLog | 7 +++++++
include/opcode/riscv-opc.h | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/include/ChangeLog b/include/ChangeLog
index 7e59ea2..f3e5811 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,10 @@
+2017-02-22 Andrew Waterman <andrew@sifive.com>
+
+ * opcode/riscv-opc.h (CSR_SCOUNTEREN): New define.
+ (CSR_MCOUNTEREN): Likewise.
+ (scounteren): Declare register.
+ (mcounteren): Likewise.
+
2017-02-14 Andrew Waterman <andrew@sifive.com>
* opcode/riscv-opc.h (MATCH_SFENCE_VMA): New define.
diff --git a/include/opcode/riscv-opc.h b/include/opcode/riscv-opc.h
index dd58053..8f0f2bc 100644
--- a/include/opcode/riscv-opc.h
+++ b/include/opcode/riscv-opc.h
@@ -605,6 +605,7 @@
#define CSR_SSTATUS 0x100
#define CSR_SIE 0x104
#define CSR_STVEC 0x105
+#define CSR_SCOUNTEREN 0x106
#define CSR_SSCRATCH 0x140
#define CSR_SEPC 0x141
#define CSR_SCAUSE 0x142
@@ -617,6 +618,7 @@
#define CSR_MIDELEG 0x303
#define CSR_MIE 0x304
#define CSR_MTVEC 0x305
+#define CSR_MCOUNTEREN 0x306
#define CSR_MSCRATCH 0x340
#define CSR_MEPC 0x341
#define CSR_MCAUSE 0x342
@@ -1095,6 +1097,7 @@ DECLARE_CSR(hpmcounter31, CSR_HPMCOUNTER31)
DECLARE_CSR(sstatus, CSR_SSTATUS)
DECLARE_CSR(sie, CSR_SIE)
DECLARE_CSR(stvec, CSR_STVEC)
+DECLARE_CSR(scounteren, CSR_SCOUNTEREN)
DECLARE_CSR(sscratch, CSR_SSCRATCH)
DECLARE_CSR(sepc, CSR_SEPC)
DECLARE_CSR(scause, CSR_SCAUSE)
@@ -1107,6 +1110,7 @@ DECLARE_CSR(medeleg, CSR_MEDELEG)
DECLARE_CSR(mideleg, CSR_MIDELEG)
DECLARE_CSR(mie, CSR_MIE)
DECLARE_CSR(mtvec, CSR_MTVEC)
+DECLARE_CSR(mcounteren, CSR_MCOUNTEREN)
DECLARE_CSR(mscratch, CSR_MSCRATCH)
DECLARE_CSR(mepc, CSR_MEPC)
DECLARE_CSR(mcause, CSR_MCAUSE)
--
2.10.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Add new counter-enable CSRs
2017-02-23 17:37 [PATCH] Add new counter-enable CSRs Palmer Dabbelt
@ 2017-02-24 16:25 ` Nick Clifton
2017-02-24 17:25 ` Palmer Dabbelt
0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2017-02-24 16:25 UTC (permalink / raw)
To: Palmer Dabbelt, binutils; +Cc: Andrew Waterman
Hi Palmer,
> 2017-02-22 Andrew Waterman <andrew@sifive.com>
>
> * opcode/riscv-opc.h (CSR_SCOUNTEREN): New define.
> (CSR_MCOUNTEREN): Likewise.
> (scounteren): Declare register.
> (mcounteren): Likewise.
Approved - please apply.
Cheers
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Add new counter-enable CSRs
2017-02-24 16:25 ` Nick Clifton
@ 2017-02-24 17:25 ` Palmer Dabbelt
0 siblings, 0 replies; 3+ messages in thread
From: Palmer Dabbelt @ 2017-02-24 17:25 UTC (permalink / raw)
To: nickc; +Cc: binutils, Andrew Waterman
On Fri, 24 Feb 2017 08:25:27 PST (-0800), nickc@redhat.com wrote:
> Hi Palmer,
>
>> 2017-02-22 Andrew Waterman <andrew@sifive.com>
>>
>> * opcode/riscv-opc.h (CSR_SCOUNTEREN): New define.
>> (CSR_MCOUNTEREN): Likewise.
>> (scounteren): Declare register.
>> (mcounteren): Likewise.
>
> Approved - please apply.
Committed. Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-24 17:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23 17:37 [PATCH] Add new counter-enable CSRs Palmer Dabbelt
2017-02-24 16:25 ` Nick Clifton
2017-02-24 17:25 ` Palmer Dabbelt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).