Created
February 14, 2018 14:01
-
-
Save xorgy/e8dfec1b9d5e804b6015d062cd0d617e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2018 Aaron Muir Hamilton | |
// | |
// Permission to use, copy, modify, and/or distribute this software for | |
// any purpose with or without fee is hereby granted, provided that the | |
// above copyright notice and this permission notice appear in all copies. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | |
// WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | |
// WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | |
// AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | |
// DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR | |
// PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | |
// TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | |
// PERFORMANCE OF THIS SOFTWARE. | |
#ifndef V8_RISCV_CONSTANTS_RISCV_H_ | |
#define V8_RISCV_CONSTANTS_RISCV_H_ | |
#include <inttypes.h> | |
namespace v8 { | |
namespace internal { | |
// I-type ops | |
uint32_t OpIMask = 0b111000001111111; | |
enum OpI { | |
OpJALR = 0b000000001100111, | |
}; | |
// U-type ops | |
uint32_t OpUMask = 0b1111111; | |
enum OpU { | |
OpAUIPC = 0b0010111, | |
}; | |
} // namespace internal | |
} // namespace v8 | |
#endif // V8_RISCV_CONSTANTS_RISCV_H_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment