The NetBSD Project

CVS log for src/sys/arch/riscv/include/sysreg.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / riscv / include

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue May 14 15:17:57 2024 UTC (6 months, 4 weeks ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4 lines
riscv: No volatile needed on asm to _read_ rounding mode, exceptions.

These instructions can be omitted if the return values are unused.
In contrast, _writes_ to the rounding mode or exceptions must not be
omitted (even if we ignore the return value, which is the old value
of the field).

I think "memory" is the wrong clobber on these asm blocks too; they
can't be reordered around _floating-point_ instructions, while
reordering around loads and stores is fine.  But I don't know how to
spell the right thing in gcclish.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue May 14 15:16:51 2024 UTC (6 months, 4 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -9 lines
riscv: Fix reading and writing frm and fflags.

The FRRM/FSRM and FRFLAGS/FSFLAGS instructions do all the masking and
shifting needed -- __SHIFTIN/__SHIFTOUT is wrong.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Feb 5 21:46:05 2024 UTC (10 months ago) by andvar
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
fix various typos in comments.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Dec 25 13:31:00 2023 UTC (11 months, 2 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -4 lines
G/C ununsed and incorrect SIE_IM

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun May 7 12:41:48 2023 UTC (19 months, 1 week ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +30 -24 lines
RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Dec 3 11:09:59 2022 UTC (2 years ago) by skrll
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +1 -1 lines
leading whitespace... oops

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Nov 18 06:53:06 2022 UTC (2 years ago) by skrll
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +25 -23 lines
Fix SR_WPRI.

Tweak csr_cycle_read and csr_asid_write for code style, and add some
KNF whitespace.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Nov 17 13:10:42 2022 UTC (2 years ago) by simonb
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +64 -59 lines
Document lots of bits.
Remove bits no longer in the RISC-V supervisor spec.
Update defines for the user-mode sstatus value.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Nov 15 14:33:33 2022 UTC (2 years ago) by simonb
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +74 -59 lines
Use similar macro-magic to aarch64 armreg.h to add per-csr
read/write/set-bits/clear-bits inline functions.  Keep the
open-coded 32-bit version of riscvreg_cycle_read() than reads
a 64-bit cycle counter values.

Added benefit of fixing these so that the inline asm uses __volatile
and aren't opmtimised to nops by the compiler.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Nov 13 08:13:55 2022 UTC (2 years ago) by skrll
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Comment fix

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Nov 12 07:05:40 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +9 -9 lines
Use uintptr_t consistently rather than register_t

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Nov 11 01:18:32 2022 UTC (2 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +9 -9 lines
The supervisor status register is the native word width, not fixed
at 32 bits.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Nov 8 13:47:09 2022 UTC (2 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Parentheses police.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Nov 8 13:35:32 2022 UTC (2 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +15 -3 lines
Add cause register trap types, and some macros to access cause register
fields.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Nov 8 12:48:28 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
whitepsace nit

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Oct 15 06:53:49 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
Fix typo in SATP_MODE_SV64

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Oct 15 06:52:35 2022 UTC (2 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
Consistency nit: use "__volatile" instead of "volatile" with asm()s.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Oct 15 06:48:31 2022 UTC (2 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -1 lines
Add SATP modes for bare, SV57 and SV64.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Oct 15 06:41:43 2022 UTC (2 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +74 -74 lines
#define<tab>

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Sep 10 09:28:26 2022 UTC (2 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Remove unnecessary cast.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:27 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +23 -7 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat May 1 07:09:55 2021 UTC (3 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +17 -1 lines
Provide riscvreg_satp_{read,write}

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat May 1 07:09:04 2021 UTC (3 years, 7 months ago) by skrll
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -7 lines
Indent the FCSR_FRM value #defines

Revision 1.5.4.2: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:34:55 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.5.4.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.4.1: +3 -3 lines
Sync w/ HEAD.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Dec 16 19:49:04 2020 UTC (3 years, 11 months ago) by christos
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
interupt -> interrupt

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:00 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +95 -33 lines
Sync w/ HEAD.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Nov 4 20:05:47 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -6 lines
Miscellaneous updates to reflect riscv-privileged-20190608.pdf

Some from zmcgrew@

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Nov 4 06:56:56 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +69 -16 lines
Miscellaneous updates to reflect riscv-privileged-20190608.pdf

Some from zmcgrew@

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Nov 2 08:37:59 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -1 lines
Add SATP_MODE values

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Nov 2 08:36:54 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -7 lines
Whitespace

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Nov 1 21:09:48 2020 UTC (4 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +17 -11 lines
Update CAUSE_* defines to reflect riscv-privileged-20190608.pdf

Revision 1.3.20.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:05 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.3.20.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.20.1: +20 -19 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.3.20.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:50 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Merge changes from current as of 20200406

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Mar 14 16:12:16 2020 UTC (4 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: thorpej-futex
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Trailing whitespace

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jun 16 07:42:52 2019 UTC (5 years, 5 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +21 -20 lines
Misc changes in RISC-V.

Revision 1.3.16.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:39 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.3.16.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.16.1: +220 -0 lines
update from HEAD

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:01 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +42 -14 lines
Sync with HEAD

Revision 1.3.16.1
Tue Mar 31 01:14:02 2015 UTC (9 years, 8 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.3: +0 -220 lines
file sysreg.h was added on branch tls-maxphys on 2017-12-03 11:36:39 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Mar 31 01:14:02 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: tls-maxphys, phil-wifi
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -11 lines
No more fatc (replaced by sfence.vm instruction).

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Mar 28 16:13:56 2015 UTC (9 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +52 -14 lines
Beginnings of RISCV kernel support.  Note that the pmap support is not yet
committed and probably won't be for awhile.  This is mostly preliminary
waiting for the supervisor specification to come out.  Lots of missing pieces
but it mostly builds.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Sep 19 17:36:26 2014 UTC (10 years, 2 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
New files for Userland support of UCB RISC-V (both 32-bit and 64-bit)

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>