diff options
author | Neel Gala <neelgala@gmail.com> | 2020-10-16 09:55:59 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 21:25:59 -0700 |
commit | 036aacbeb276be794f7a3ba89f5da3c5b2f8eb9f (patch) | |
tree | 1d8ab1eb55c1778a6e7767b7f772e2c8fcb64af5 /fesvr/htif.h | |
parent | e4419aa79a3c999e85610616d6e85847b08f7e19 (diff) | |
download | spike-036aacbeb276be794f7a3ba89f5da3c5b2f8eb9f.zip spike-036aacbeb276be794f7a3ba89f5da3c5b2f8eb9f.tar.gz spike-036aacbeb276be794f7a3ba89f5da3c5b2f8eb9f.tar.bz2 |
reduce sig_len constraint to 4 bytes (#569)
* reduce sig_len constraint to 4 bytes
Spike currently asserts that the signature length should always be a multiple of 16-bytes. However, the compliance suite has agreed to upon the signature being a multiple ot 4-bytes. This prevents some of the tests to run on spike since it fails the assertion.
The proposed change fixes this issue and reduces the assertion to 4 bytes.
* Added size argument to htif arguments and zero padding for signature output. Defaultline size-16.
* Modified type of line_size to unsigned.
* Renamed size to granularity.
* Rename granularity to signature-granularity.
Co-authored-by: dracarys99 <spawan1999@gmail.com>
Diffstat (limited to 'fesvr/htif.h')
-rw-r--r-- | fesvr/htif.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fesvr/htif.h b/fesvr/htif.h index 5b16a60..44a3b12 100644 --- a/fesvr/htif.h +++ b/fesvr/htif.h @@ -63,6 +63,7 @@ class htif_t : public chunked_memif_t std::vector<std::string> hargs; std::vector<std::string> targs; std::string sig_file; + unsigned int line_size; addr_t sig_addr; // torture addr_t sig_len; // torture addr_t tohost_addr; @@ -100,6 +101,8 @@ class htif_t : public chunked_memif_t +rfb=DISPLAY to be accessible on 5900 + DISPLAY (default = 0)\n\ --signature=FILE Write torture test signature to FILE\n\ +signature=FILE\n\ + --signature-granularity=VAL Size of each line in signature.\n\ + +signature-granularity=VAL\n\ --chroot=PATH Use PATH as location of syscall-servicing binaries\n\ +chroot=PATH\n\ --payload=PATH Load PATH memory as an additional ELF payload\n\ @@ -121,6 +124,7 @@ TARGET (RISC-V BINARY) OPTIONS\n\ {"signature", required_argument, 0, HTIF_LONG_OPTIONS_OPTIND + 2 }, \ {"chroot", required_argument, 0, HTIF_LONG_OPTIONS_OPTIND + 3 }, \ {"payload", required_argument, 0, HTIF_LONG_OPTIONS_OPTIND + 4 }, \ +{"signature-granularity", optional_argument, 0, HTIF_LONG_OPTIONS_OPTIND + 5 }, \ {0, 0, 0, 0} #endif // __HTIF_H |