Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Benchmark update #75

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix: add dirty flag when load cell data as code
  • Loading branch information
mohanson authored and liya2017 committed Nov 18, 2021
commit 0aa9c29a32f1b5292c5db4ab8ec8ca93dcacf5da
4 changes: 2 additions & 2 deletions script/src/syscalls/load_cell_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
use ckb_traits::CellDataProvider;
use ckb_types::core::cell::CellMeta;
use ckb_vm::{
memory::{Memory, FLAG_EXECUTABLE, FLAG_FREEZED},
memory::{Memory, FLAG_DIRTY, FLAG_EXECUTABLE, FLAG_FREEZED},
registers::{A0, A1, A2, A3, A4, A5, A7},
Error as VMError, Register, SupportMachine, Syscalls,
};
Expand Down Expand Up @@ -107,7 +107,7 @@ impl<'a, DL: CellDataProvider + 'a> LoadCellData<'a, DL> {
machine.memory_mut().init_pages(
addr,
memory_size,
FLAG_EXECUTABLE | FLAG_FREEZED,
FLAG_DIRTY | FLAG_EXECUTABLE | FLAG_FREEZED,
Some(data),
0,
)?;
Expand Down