X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fynorsim.c;h=dcab663cc89ecd9dffa80c89f5235792d293acc6;hp=723b72b453b30f0c0d39e659782efe579d197b2e;hb=6ce07c3f6215ce6a4f4b7fe520ef48e8cf71c7cb;hpb=3797c6edfef9bef80f70001b14ee636b0309895a diff --git a/direct/ynorsim.c b/direct/ynorsim.c index 723b72b..dcab663 100644 --- a/direct/ynorsim.c +++ b/direct/ynorsim.c @@ -19,7 +19,7 @@ */ //#define YNORSIM_BIT_CHANGES 15 -#define YNORSIM_BIT_CHANGES 1 +#define YNORSIM_BIT_CHANGES 2 #if 0 /* Simulate 32MB of flash in 256k byte blocks. @@ -74,6 +74,8 @@ static int initialised = 0; static int remaining_ops; static int nops_so_far; +int ops_multiplier = 500; + static void ynorsim_MaybePowerFail(void) { @@ -94,7 +96,7 @@ static void ynorsim_Ready(void) return; srand(random_seed); remaining_ops = 1000000000; - remaining_ops = (rand() % 10000) * 300 * YNORSIM_BIT_CHANGES; + remaining_ops = (rand() % 10000) * ops_multiplier * YNORSIM_BIT_CHANGES; ynorsim_RestoreImage(); }