summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-icache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-icache.cc')
-rw-r--r--deps/v8/test/cctest/test-icache.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/v8/test/cctest/test-icache.cc b/deps/v8/test/cctest/test-icache.cc
index 82baa9fe96..13c94f3afc 100644
--- a/deps/v8/test/cctest/test-icache.cc
+++ b/deps/v8/test/cctest/test-icache.cc
@@ -61,6 +61,10 @@ static void FloodWithInc(Isolate* isolate, TestingAssemblerBuffer* buffer) {
for (int i = 0; i < kNumInstr; ++i) {
__ agfi(r2, Operand(1));
}
+#elif V8_TARGET_ARCH_RISCV64
+ for (int i = 0; i < kNumInstr; ++i) {
+ __ Add32(a0, a0, Operand(1));
+ }
#else
#error Unsupported architecture
#endif
@@ -173,7 +177,8 @@ TEST(TestFlushICacheOfWritableAndExecutable) {
HandleScope handles(isolate);
for (int i = 0; i < kNumIterations; ++i) {
- auto buffer = AllocateAssemblerBuffer(kBufferSize);
+ auto buffer = AllocateAssemblerBuffer(kBufferSize, nullptr,
+ VirtualMemory::kMapAsJittable);
// Allow calling the function from C++.
auto f = GeneratedCode<F0>::FromBuffer(isolate, buffer->start());