Skip to content

Commit

Permalink
threads, moved to include, Mailbox
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Apr 15, 2009
1 parent d5bdd07 commit 6a0f450
Show file tree
Hide file tree
Showing 21 changed files with 91 additions and 372 deletions.
2 changes: 1 addition & 1 deletion Controller/ARM/InstructionARM.cc
Expand Up @@ -4,7 +4,7 @@

//this is the ARM disassembler

#include "InstructionARM.h"
#include "InstructionARM.h" //just included here
#include "templateARM.h" //just included here

using namespace eda;
Expand Down
6 changes: 4 additions & 2 deletions Controller/ARM/InstructionARM.h
Expand Up @@ -2,11 +2,13 @@
// by geohot
// released under GPLv3, see http://gplv3.fsf.org/

//not moved into include on purpose

#ifndef EDA_INSTRUCTIONARM_H_
#define EDA_INSTRUCTIONARM_H_

#include "../Instruction.h"
#include "../../include/macros.h"
#include "Instruction.h"
#include "macros.h"

#include "InstructionARM.h"

Expand Down
4 changes: 3 additions & 1 deletion Controller/ARM/templateARM.h
Expand Up @@ -2,11 +2,13 @@
// by geohot
// released under GPLv3, see http://gplv3.fsf.org/

//not moved into include on purpose

#ifndef EDA_TEMPLATEARM_H_
#define EDA_TEMPLATEARM_H_

#include <string>
#include "../../Model/ParsedInstruction.h"
#include "ParsedInstruction.h"

typedef union
{
Expand Down
31 changes: 0 additions & 31 deletions Controller/Changelist.h

This file was deleted.

29 changes: 0 additions & 29 deletions Controller/Instruction.h

This file was deleted.

4 changes: 2 additions & 2 deletions Controller/StatelessChangelist.cc
Expand Up @@ -2,8 +2,8 @@
// by geohot
// released under GPLv3, see http://gplv3.fsf.org/

#include "../Model/RegisterFile.h"
#include "../Model/Memory.h"
#include "RegisterFile.h"
#include "Memory.h"

#include "StatelessChangelist.h"

Expand Down
113 changes: 0 additions & 113 deletions Controller/StatelessChangelist.h

This file was deleted.

26 changes: 21 additions & 5 deletions Core.cc 100644 → 100755
@@ -1,7 +1,15 @@
#include "ConsoleFrontEnd.h"

#include <iostream>
#include "Core.h"
#include "macros.h"
using namespace std;

int ParsedInstruction_test();
int File_test();
int InstructionARM_test();
int Memory_test();

namespace eda {

Core::Core(Edb* edb, Server* server): mEdb(edb), mServer(server) {
Expand All @@ -15,11 +23,19 @@ void Core::update() {

void Core::test() {
// From testSuite.cc
cout << "running tests. " << endl;
cout << "ParsedInstruction test: "; //ParsedInstruction_test();
cout << "File test: "; //File_test();
cout << "debug macro test: "; //debug << "test" << endl;
cout << "InstructionARM test: "; //InstructionARM_test();
/*cout << "running tests. " << endl;
cout << "ParsedInstruction test: "; ParsedInstruction_test();
cout << "File test: "; File_test();
cout << "debug macro test: "; info << "test" << endl;
cout << "InstructionARM test: "; InstructionARM_test();
cout << "Memory test: "; Memory_test();*/
Mailbox test;
ConsoleFrontEnd a(&test,0);
while(1)
{
Mail yay=test.waitForMail();
cout << "i've got mail: " << yay.mCommand << endl;
}
return;// 0;
}

Expand Down
27 changes: 0 additions & 27 deletions Model/File.h

This file was deleted.

2 changes: 1 addition & 1 deletion Model/Memory.cc
Expand Up @@ -2,7 +2,7 @@
// by geohot
// released under GPLv3, see http://gplv3.fsf.org/

#include "../include/macros.h"
#include "macros.h"
#include "Memory.h"
#include <iostream>
#include <iomanip>
Expand Down
38 changes: 0 additions & 38 deletions Model/Memory.h

This file was deleted.

49 changes: 0 additions & 49 deletions Model/ParsedInstruction.h

This file was deleted.

0 comments on commit 6a0f450

Please sign in to comment.