pagetable.hh (5184:8782de2949e5) pagetable.hh (5237:6c819dbe8045)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

--- 48 unchanged lines hidden (view full) ---

57
58#ifndef __ARCH_X86_PAGETABLE_HH__
59#define __ARCH_X86_PAGETABLE_HH__
60
61#include <iostream>
62#include <string>
63
64#include "sim/host.hh"
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

--- 48 unchanged lines hidden (view full) ---

57
58#ifndef __ARCH_X86_PAGETABLE_HH__
59#define __ARCH_X86_PAGETABLE_HH__
60
61#include <iostream>
62#include <string>
63
64#include "sim/host.hh"
65#include "base/bitunion.hh"
65#include "base/misc.hh"
66
67class Checkpoint;
68
69namespace X86ISA
70{
66#include "base/misc.hh"
67
68class Checkpoint;
69
70namespace X86ISA
71{
71 struct VAddr
72 {
73 VAddr(Addr a) { panic("not implemented yet."); }
74 };
72 BitUnion64(VAddr)
73 Bitfield<20, 12> longl1;
74 Bitfield<29, 21> longl2;
75 Bitfield<38, 30> longl3;
76 Bitfield<47, 39> longl4;
75
77
78 Bitfield<20, 12> pael1;
79 Bitfield<29, 21> pael2;
80 Bitfield<31, 30> pael3;
81
82 Bitfield<21, 12> norml1;
83 Bitfield<31, 22> norml2;
84 EndBitUnion(VAddr)
85
76 struct TlbEntry
77 {
78 // The base of the physical page.
79 Addr paddr;
80
81 // The beginning of the virtual page this entry maps.
82 Addr vaddr;
83 // The size of the page this entry represents.

--- 33 unchanged lines hidden ---
86 struct TlbEntry
87 {
88 // The base of the physical page.
89 Addr paddr;
90
91 // The beginning of the virtual page this entry maps.
92 Addr vaddr;
93 // The size of the page this entry represents.

--- 33 unchanged lines hidden ---