Rename vm::common -> vm::addr
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use crate::vm::{inst::InstOp, reg::Reg, common::*,};
|
use crate::vm::{inst::InstOp, reg::Reg, addr::*,};
|
||||||
use snafu::Snafu;
|
use snafu::Snafu;
|
||||||
|
|
||||||
#[derive(Snafu, Debug, Clone)]
|
#[derive(Snafu, Debug, Clone)]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::vm::{common::Addr, reg::Reg};
|
use crate::vm::{addr::Addr, reg::Reg};
|
||||||
|
|
||||||
macro_rules! instructions {
|
macro_rules! instructions {
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::vm::{common::*, error::*, inst::*, reg::*};
|
use crate::vm::{addr::*, error::*, inst::*, reg::*};
|
||||||
use std::{convert::TryInto, ops::Index, mem};
|
use std::{convert::TryInto, ops::Index, mem};
|
||||||
|
|
||||||
pub struct MemCursor<T> {
|
pub struct MemCursor<T> {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pub mod common;
|
pub mod addr;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod flags;
|
pub mod flags;
|
||||||
pub mod inst;
|
pub mod inst;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use crate::vm::{common::*, error::*, flags::*, mem::*, reg::*};
|
use crate::vm::{addr::*, error::*, flags::*, mem::*, reg::*};
|
||||||
|
|
||||||
pub struct State {
|
pub struct State {
|
||||||
regs: [u64; NUM_REGS],
|
regs: [u64; NUM_REGS],
|
||||||
|
|||||||
Reference in New Issue
Block a user