Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
U
util
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mmix
util
Commits
05db5d83
Commit
05db5d83
authored
Sep 10, 2015
by
Martin Ruckert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding customization for mmixgdb
parent
56f253b5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
354 additions
and
0 deletions
+354
-0
mmixlib/customizegdb.vcproj
mmixlib/customizegdb.vcproj
+250
-0
mmixlib/libconfig.gdb
mmixlib/libconfig.gdb
+100
-0
mmixlib/libimport.gdb
mmixlib/libimport.gdb
+4
-0
No files found.
mmixlib/customizegdb.vcproj
0 → 100644
View file @
05db5d83
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType=
"Visual C++"
Version=
"8.00"
Name=
"customizegdb"
ProjectGUID=
"{97BF3001-ABEA-4190-884A-E846DB460ABE}"
RootNamespace=
"customizegdb"
>
<Platforms>
<Platform
Name=
"Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name=
"Debug|Win32"
OutputDirectory=
"$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory=
"$(ConfigurationName)"
ConfigurationType=
"1"
CharacterSet=
"2"
>
<Tool
Name=
"VCPreBuildEventTool"
CommandLine=
""
/>
<Tool
Name=
"VCCustomBuildTool"
Description=
""
CommandLine=
""
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
RuntimeLibrary=
"3"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
DebugInformationFormat=
"4"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCLinkerTool"
GenerateDebugInformation=
"true"
TargetMachine=
"1"
/>
<Tool
Name=
"VCALinkTool"
/>
<Tool
Name=
"VCManifestTool"
/>
<Tool
Name=
"VCXDCMakeTool"
/>
<Tool
Name=
"VCBscMakeTool"
/>
<Tool
Name=
"VCFxCopTool"
/>
<Tool
Name=
"VCAppVerifierTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name=
"Release|Win32"
OutputDirectory=
"$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory=
"$(ConfigurationName)"
ConfigurationType=
"1"
CharacterSet=
"2"
WholeProgramOptimization=
"1"
>
<Tool
Name=
"VCPreBuildEventTool"
CommandLine=
""
/>
<Tool
Name=
"VCCustomBuildTool"
Description=
""
CommandLine=
""
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCCLCompilerTool"
RuntimeLibrary=
"2"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
DebugInformationFormat=
"3"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCLinkerTool"
GenerateDebugInformation=
"true"
OptimizeReferences=
"2"
EnableCOMDATFolding=
"2"
TargetMachine=
"1"
/>
<Tool
Name=
"VCALinkTool"
/>
<Tool
Name=
"VCManifestTool"
/>
<Tool
Name=
"VCXDCMakeTool"
/>
<Tool
Name=
"VCBscMakeTool"
/>
<Tool
Name=
"VCFxCopTool"
/>
<Tool
Name=
"VCAppVerifierTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name=
"Source Files"
Filter=
"cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier=
"{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
</Filter>
<Filter
Name=
"Header Files"
Filter=
"h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier=
"{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=
"..\mmixlib\libconfig.h"
>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCustomBuildTool"
Description=
"copying libconfig.gdb"
CommandLine=
"copy $(InputDir)libconfig.gdb $(InputDir)libconfig.h"
AdditionalDependencies=
"$(InputDir)libconfig.gdb"
Outputs=
"$(InputDir)libconfig.h"
/>
</FileConfiguration>
<FileConfiguration
Name=
"Release|Win32"
>
<Tool
Name=
"VCCustomBuildTool"
Description=
"copying libconfig.gdb"
CommandLine=
"copy $(InputDir)libconfig.gdb $(InputDir)libconfig.h"
AdditionalDependencies=
"$(InputDir)libconfig.gdb"
Outputs=
"$(InputDir)libconfig.h"
/>
</FileConfiguration>
</File>
<File
RelativePath=
"..\mmixlib\libconfig.gdb"
>
</File>
<File
RelativePath=
"..\mmixlib\libimport.h"
>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCustomBuildTool"
Description=
"copying libimport.gdb"
CommandLine=
"copy $(InputDir)libimport.gdb $(InputDir)libimport.h
"
AdditionalDependencies=
"$(InputDir)libimport.gdb"
Outputs=
"$(InputDir)libimport.h"
/>
</FileConfiguration>
<FileConfiguration
Name=
"Release|Win32"
>
<Tool
Name=
"VCCustomBuildTool"
Description=
"copying libimport.gdb"
CommandLine=
"copy $(InputDir)libimport.gdb $(InputDir)libimport.h
"
AdditionalDependencies=
"$(InputDir)libimport.gdb"
Outputs=
"$(InputDir)libimport.h"
/>
</FileConfiguration>
</File>
<File
RelativePath=
"..\mmixlib\libimport.gdb"
>
</File>
</Filter>
<Filter
Name=
"Resource Files"
Filter=
"rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier=
"{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
mmixlib/libconfig.gdb
0 → 100644
View file @
05db5d83
#ifndef LIBCONFIG_H
#define LIBCONFIG_H
/* This this the libconfig.h file for MMIXGDB rename to libconfig.h */
#ifdef WIN32
#pragma warning(disable : 4996)
#endif
/* define this if you need a local copy of mem_tetra ll */
#define MMIX_LOCAL_LL /* mem_tetra *ll; current place in the simulated memory */
#define MMIX_STO(val,addr) store_data(8,val,addr)
#define MMIX_STT(val,addr) store_data(4,val,addr)
#define MMIX_STW(val,addr) store_data(2,val,addr)
#define MMIX_STB(val,addr) store_data(1,val,addr)
#define MMIX_LDO(val,addr) load_data(8,&(val),addr,0)
#define MMIX_LDT(val,addr) load_data(4,&(val),addr,0)
#define MMIX_LDW(val,addr) load_data(2,&(val),addr,0)
#define MMIX_LDB(val,addr) load_data(1,&(val),addr,0)
#define MMIX_STO_UNCACHED(val,addr) store_data_uncached(8,val,addr)
#define MMIX_LDO_UNCACHED(val,addr) load_data_uncached(8,&(val),addr,0)
#define MMIX_FETCH(inst,loc) load_instruction(&inst,loc)
#define MMIX_STORE_IVTC(virt,phys) store_exec_translation(&(virt),&(phys))
#define MMIX_STORE_DVTC(virt,phys) store_data_translation(&(virt),&(phys))
#ifdef WIN32
#define MMIX_DELAY(ms,d) ((d) = wait_time(ms))
#else
#define MMIX_DELAY(ms,d) (usleep(1000*(ms)), d=(ms))
#endif
/* define this to check for external asynchronous interrupts*/
#define MMIX_GET_INTERRUPT get_interrupt(&new_Q)
/* this code is executed when MMIX enters the handler for Ctrl-C */
#define MMIX_CTRL_HANDLER (cancel_wait(), show_operating_system=true)
/* this code defines additional command line options */
#define MMIX_OPTIONS \
case 'B': \
{ char *p; \
p = strchr(arg+1,':'); \
if (p==NULL) \
{ host=localhost; \
port = atoi(arg+1); \
} \
else \
{ port = atoi(p+1); \
host = malloc(p+1-arg+1); \
if (host==NULL) panic("No room for hostname"); \
strncpy(host,arg+1,p-arg-1); \
host[p-arg-1]=0; \
} \
} \
return; \
/* if MMIX_BOOT is defined, mmix-sim will boot from addres #8000...0000
otherwise it will resume at Main */
#define MMIX_BOOT
/* if MMIX_PRINT is defined the mmixoutput is redirected from stdin or stderr */
#undef MMIX_PRINT
/* this action is executed when there is no mmo file on the command line */
#define MMIX_NO_FILE
/* define this to get the real TRAP implementation not the MMIXWARE fake TRAPS */
#define MMIX_TRAP
/* this is the error display function */
#define MMIX_ERROR(f,m) fprintf(stderr,f,m)
/* define this if you need the tetra inside the mem_node */
#undef MMIX_MEM_TET /* tetra tet; the tetrabyte of simulated memory */
/* these are the functions for the instructions not implemented in the basic mmix simulator */
#define MMIX_WRITE_DCACHE() write_all_data_cache()
#define MMIX_CLEAR_ICACHE() clear_all_instruction_cache()
#define MMIX_CLEAR_DCACHE() clear_all_data_cache()
#define MMIX_UPDATE_VTC(w) update_vtc(w)
#define MMIX_CLEAR_DVTC() clear_all_data_vtc()
#define MMIX_CLEAR_IVTC() clear_all_instruction_vtc()
#define MMIX_PRELOAD_DCACHE(w,xx) preload_data_cache(w,xx)
#define MMIX_PRELOAD_ICACHE(w,xx) prego_instruction(w,xx)
#define MMIX_STORE_DCACHE(w,xx) write_data(w,xx)
#define MMIX_DELETE_DCACHE(w,xx) delete_data(w,xx)
#define MMIX_DELETE_ICACHE(w,xx) delete_instruction(w,xx)
#define MMXIAL_LINE_TRUNCATED fprintf(stderr,"(say `-b <number>' to increase the length of my input buffer)\n");
/* define this to record file line and location associations while assembling */
#define MMIXAL_LINE_LOC(file_no,line_no,cur_loc)
#endif
mmixlib/libimport.gdb
0 → 100644
View file @
05db5d83
/* This this the libimport.h file for MMIXGDB rename to libimport.h */
#include "../../vmbmmixlib/address.h"
#include "../../vmbmmixlib/mmix-bus.h"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment