commit | bdef8527853f246fd65fa644c714c2de30104a71 | [log] [tgz] |
---|---|---|
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | Tue Jan 05 12:11:55 2021 +0000 |
committer | Rupert Swarbrick <rswarbrick@gmail.com> | Thu Jan 07 10:26:24 2021 +0000 |
tree | ec331f78d8bacca72296e9474062d9e7cc8c5939 | |
parent | a5a21b95c5d0ce308478e7a137d7cf7ef4fecfc4 [diff] |
[otbn] Fix a bug in RIG jump target selection The pick_branch_targets function picks a "gap": a range of addresses from which we can choose a target. Once it has done so, gap_vma is the start address of the range and gap_len is its length (a positive number of bytes). If there is only one valid address in the gap, gap_len will be 1. To choose the address within the gap we calculate max_insn_off, a "maximum offset for an instruction" (in units of instruction size). This calculation wasn't quite right, and could give a negative value when gap_len was 1. Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).